Railsでテストをしようしているのですが、下記のエラーが出ます。
よろしくお願いいたします。
ターミナル
Bundler could not find compatible versions for gem "actionview":
In snapshot (Gemfile.lock):
actionview (= 6.0.1)
In Gemfile:
rails (~> 6.0.1) was resolved to 6.0.1, which depends on
actionview (= 6.0.1)
rails-controller-testing (= 1.0.2) was resolved to 1.0.2, which depends on actionview (~> 5.x, >= 5.0.1) web-console (>= 3.3.0) was resolved to 4.0.1, which depends on actionview (>= 6.0.0)
Running bundle update
will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Gemifile
1ruby '2.6.3' 2 3# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 4gem 'rails', '~> 6.0.1' 5# Use sqlite3 as the database for Active Record 6# gem 'sqlite3', '~> 1.4' 7# Use Puma as the app server 8gem 'puma', '~> 4.1' 9# Use SCSS for stylesheets 10gem 'sass-rails', '>= 6' 11# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker 12gem 'webpacker', '~> 4.0' 13# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks 14gem 'turbolinks', '~> 5' 15# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 16gem 'jbuilder', '~> 2.7' 17# Use Redis adapter to run Action Cable in production 18# gem 'redis', '~> 4.0' 19# Use Active Model has_secure_password 20# gem 'bcrypt', '~> 3.1.7' 21 22# Use Active Storage variant 23# gem 'image_processing', '~> 1.2' 24 25# Reduces boot times through caching; required in config/boot.rb 26gem 'bootsnap', '>= 1.4.2', require: false 27 28group :development, :test do 29 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 30 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 31end 32 33group :development, :test do 34 # Access an interactive console on exception pages or by calling 'console' anywhere in the code. 35 gem 'web-console', '>= 3.3.0' 36 gem 'listen', '>= 3.0.5', '< 3.2' 37 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 38 gem 'spring' 39 gem 'spring-watcher-listen', '~> 2.0.0' 40 gem 'sqlite3' 41 # Adds support for Capybara system testing and selenium driver 42 gem 'capybara', '>= 2.15' 43 gem 'selenium-webdriver' 44 # Easy installation and use of web drivers to run system tests with browsers 45 gem 'webdrivers' 46end 47 48group :production do 49 gem 'pg' 50end 51 52group :test do 53 gem 'actionview', '>= 6.0.0' 54 gem 'rails-controller-testing', '1.0.2' 55 gem 'minitest', '>= 5.13.0' 56 gem 'minitest-reporters', '1.1.14' 57 gem 'guard', '2.13.0' 58 gem 'guard-minitest', '2.4.4' 59end 60 61# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 62gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 63
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。