質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

178閲覧

Rails での testのエラー

kinakoooo

総合スコア8

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

1クリップ

投稿2019/12/12 23:00

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

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

バージョンを5.1.6にしたら解決しました!

投稿2019/12/27 05:25

kinakoooo

総合スコア8

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問