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

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

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

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

Q&A

解決済

3回答

821閲覧

rspec:install エラー

h.h

総合スコア8

Ruby on Rails

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

0グッド

1クリップ

投稿2019/09/22 08:26

編集2019/09/23 08:26

お世話になります。
rspecのインストールが上手く行きません。

環境
Mojava 10.14.6
ruby 2.6.4
rails 6.0.0

gem 'rspec-rails'と記入
bundle install --path vendor/bundle
bundle exec rails rspec:installを実行すると

Could not find generator 'rspec:install'. Maybe you meant "scaffold"? Run `rails generate --help` for more options.

と表示されます。
色々ググって見たのですが分からない状態なのでお力添えをお願い致します。

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

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

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

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

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

guest

回答3

0

自己解決

gemファイルのgroup :development, :testが読み込まれていない状態でした。

投稿2019/12/11 06:51

h.h

総合スコア8

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

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

0

$ bundle exec rails g --helpRSpec のコマンド一覧は出てきますか。

投稿2019/09/23 00:01

退会済みユーザー

退会済みユーザー

総合スコア0

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

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

h.h

2019/09/23 05:10

はい。 ``` General options: -h, [--help] # Print generator's options and usage -p, [--pretend] # Run but do not make any changes -f, [--force] # Overwrite files that already exist -s, [--skip] # Skip files that already exist -q, [--quiet] # Suppress status output ``` と表示されます。
退会済みユーザー

退会済みユーザー

2019/09/23 05:17

RSpec のコマンド一覧が出てきているかを確認して下さい。
h.h

2019/09/23 05:26

``` Please choose a generator below. Rails: application_record assets channel controller generator helper integration_test jbuilder job mailbox mailer migration model resource scaffold scaffold_controller system_test task ActiveRecord: active_record:application_record TestUnit: test_unit:channel test_unit:generator test_unit:mailbox test_unit:plugin ``` ここでしょうか?
退会済みユーザー

退会済みユーザー

2019/09/23 05:35

Rspec の各種コマンドが実行できる場合は、 Rspec: rspec:controller rspec:feature rspec:helper rspec:install rspec:integration rspec:job rspec:mailer rspec:model rspec:observer rspec:request rspec:scaffold rspec:view 以上の表示があるはずです。なので、コマンド一覧は出てきていない、ということになります。 一般的に、ログやコマンドの内容を省略するとやりとりに行き違いが生じます。
h.h

2019/09/23 05:42

申し訳ありません。 rspec のコマンドは出て来て無いです。
退会済みユーザー

退会済みユーザー

2019/09/23 05:50 編集

となると、bundle install がうまく行っていない可能性が高いですね。 Gemfileを追記してもらえますか? また、可能なら、bundle install時のログもお願いします。 ログから個人の情報は適宜隠して下さい。
h.h

2019/09/23 07:48

ログ ``` MacBook-Pro$ bundle exec rails g rspec:install Could not find generator 'rspec:install'. Maybe you meant "scaffold"? Run `rails generate --help` for more options. ``` gem ``` source 'https://rubygems.org' git_source(:github) { |repo| "https://github.com/#{repo}.git" } ruby '2.6.4' gem 'rails', '~> 6.0.0' gem 'mysql2', '>= 0.4.4' gem 'puma', '~> 3.11' gem 'sass-rails', '~> 5' gem 'webpacker', '~> 4.0' gem 'turbolinks', '~> 5' gem 'jbuilder', '~> 2.7' gem 'bootsnap', '>= 1.4.2', require: false group :development, :test do gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] gem 'rspec-rails' end group :development do gem 'web-console', '>= 3.3.0' gem 'listen', '>= 3.0.5', '< 3.2' gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' end group :test do gem 'capybara', '>= 2.15' gem 'selenium-webdriver' gem 'webdrivers' end gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] ``` よろしくおねがいします。
siruku6

2019/09/23 09:08

横やり失礼しますが、10tm84さんのおっしゃるように、bundle install時のログも必要になると思います。
h.h

2019/09/23 19:12

Bundle complete! 18 Gemfile dependencies, 59 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into `./vendor/bundle` Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from sass: Ruby Sass has reached end-of-life and should no longer be used. * If you use Sass as a command-line tool, we recommend using Dart Sass, the new primary implementation: https://sass-lang.com/install * If you use Sass as a plug-in for a Ruby web framework, we recommend using the sassc gem: https://github.com/sass/sassc-ruby#readme * For more details, please refer to the Sass blog: https://sass-lang.com/blog/posts/7828841 宜しくお願い致します。
退会済みユーザー

退会済みユーザー

2019/09/23 23:40

繰り返し申し上げていますように、ログは省略しないでください。 原因としては、上記の記載から、一部のgemがインストールされていないことが分かります。 production環境で bundle install しているように思いました。
h.h

2019/09/24 02:15

The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Using rake 12.3.3 Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using zeitwerk 2.1.10 Using activesupport 6.0.0 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.4 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.2.0 Using actionview 6.0.0 Using rack 2.0.7 Using rack-test 1.1.0 Using actionpack 6.0.0 Using nio4r 2.5.1 Using websocket-extensions 0.1.4 Using websocket-driver 0.7.1 Using actioncable 6.0.0 Using globalid 0.4.2 Using activejob 6.0.0 Using activemodel 6.0.0 Using activerecord 6.0.0 Using mimemagic 0.3.3 Using marcel 0.3.3 Using activestorage 6.0.0 Using mini_mime 1.0.2 Using mail 2.7.1 Using actionmailbox 6.0.0 Using actionmailer 6.0.0 Using actiontext 6.0.0 Using msgpack 1.3.1 Using bootsnap 1.4.5 Using bundler 2.0.2 Using ffi 1.11.1 Using jbuilder 2.9.1 Using method_source 0.9.2 Using mysql2 0.5.2 Using puma 3.12.1 Using rack-proxy 0.6.5 Using thor 0.20.3 Using railties 6.0.0 Using sprockets 3.7.2 Using sprockets-rails 3.2.1 Using rails 6.0.0 Using rb-fsevent 0.10.3 Using rb-inotify 0.10.0 Using sass-listen 4.0.0 Using sass 3.7.4 Using tilt 2.0.9 Using sass-rails 5.1.0 Using turbolinks-source 5.2.0 Using turbolinks 5.2.1 Using webpacker 4.0.7 Bundle complete! 18 Gemfile dependencies, 59 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into `./vendor/bundle` 宜しくお願い致します。
退会済みユーザー

退会済みユーザー

2019/09/24 02:19

bundle install を実行している環境を教えて頂けますか? 「環境」とは、OS であったり、ハードウェアだったり、プラットフォーム(というかサービスというか)であったりです。 たとえば、「Macのローカル開発環境」だとか、「Cloud9」だとか、です。 あと、後ほどでいいと思いますが、ログなどの情報は質問文本文に書いたほうが後から参照する人が分かりやすいと思います。
h.h

2019/09/24 05:08 編集

ご指摘ありがとうございます。 環境 Mojava 10.14.6 ruby 2.6.4 rails 6.0.0 ローカル開発環境です。 homebrewでインストールしました。
退会済みユーザー

退会済みユーザー

2019/09/24 05:10

bundle install に without オプションを付けていませんか? コマンドのログは、コマンド自体も省略せずに記載するようにして下さい。
h.h

2019/09/24 07:58

MacBook$ bundle install --path vendor/bundle The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Using rake 12.3.3 Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using zeitwerk 2.1.10 Using activesupport 6.0.0 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.4 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.2.0 Using actionview 6.0.0 Using rack 2.0.7 Using rack-test 1.1.0 Using actionpack 6.0.0 Using nio4r 2.5.1 Using websocket-extensions 0.1.4 Using websocket-driver 0.7.1 Using actioncable 6.0.0 Using globalid 0.4.2 Using activejob 6.0.0 Using activemodel 6.0.0 Using activerecord 6.0.0 Using mimemagic 0.3.3 Using marcel 0.3.3 Using activestorage 6.0.0 Using mini_mime 1.0.2 Using mail 2.7.1 Using actionmailbox 6.0.0 Using actionmailer 6.0.0 Using actiontext 6.0.0 Using msgpack 1.3.1 Using bootsnap 1.4.5 Using bundler 2.0.2 Using ffi 1.11.1 Using jbuilder 2.9.1 Using method_source 0.9.2 Using mysql2 0.5.2 Using puma 3.12.1 Using rack-proxy 0.6.5 Using thor 0.20.3 Using railties 6.0.0 Using sprockets 3.7.2 Using sprockets-rails 3.2.1 Using rails 6.0.0 Using rb-fsevent 0.10.3 Using rb-inotify 0.10.0 Using sass-listen 4.0.0 Using sass 3.7.4 Using tilt 2.0.9 Using sass-rails 5.1.0 Using turbolinks-source 5.2.0 Using turbolinks 5.2.1 Using webpacker 4.0.7 Bundle complete! 18 Gemfile dependencies, 59 gems now installed. Gems in the groups nothing, development and test were not installed. Bundled gems are installed into `./vendor/bundle`
退会済みユーザー

退会済みユーザー

2019/09/24 08:09

bundler の設定を一度消しましょう(自動で再生成されます)。 $ rm -r .bundler を実行して、再び bundle install したらどうなるでしょうか。
h.h

2019/09/24 08:15

MacBook-Pro$ rm -r .bundler rm: .bundler: No such file or directory となります。
退会済みユーザー

退会済みユーザー

2019/09/24 08:16

rails アプリがあるディレクトリでコマンドを実行していますか?
h.h

2019/09/24 09:42

はい。 MacBook-Pro$ rm -r .bundler rm: .bundler: No such file or directory と表示されます、、
退会済みユーザー

退会済みユーザー

2019/09/24 09:44

次のコマンドの結果を教えて下さい。 $ ls -la
h.h

2019/09/24 09:58

MacBook-Pro$ ls -la total 704 drwxr-xr-x 28 hh staff 896 Sep 24 17:19 . drwx------@ 12 hh staff 384 Sep 24 18:57 .. -rw-r--r-- 1 hh staff 9 Sep 23 00:53 .browserslistrc drwxr-xr-x 3 hh staff 96 Sep 24 11:20 .bundle drwxr-xr-x 12 hh staff 384 Sep 24 11:32 .git -rw-r--r-- 1 hh staff 686 Sep 23 00:53 .gitignore -rw-r--r-- 1 hh staff 6 Sep 22 01:38 .ruby-version -rw-r--r-- 1 hh staff 748 Sep 23 15:59 Gemfile -rw-r--r-- 1 hh staff 6061 Sep 22 01:59 Gemfile.lock -rw-r--r-- 1 hh staff 374 Sep 22 01:38 README.md -rw-r--r-- 1 hh staff 227 Sep 22 01:38 Rakefile drwxr-xr-x 11 hh staff 352 Sep 23 00:51 app -rw-r--r-- 1 hh staff 1876 Sep 23 00:53 babel.config.js drwxr-xr-x 9 hh staff 288 Sep 23 00:53 bin drwxr-xr-x 18 hh staff 576 Sep 24 11:09 config -rw-r--r-- 1 hh staff 130 Sep 22 01:38 config.ru drwxr-xr-x 5 hh staff 160 Sep 22 02:16 db drwxr-xr-x 4 hh staff 128 Sep 22 01:46 lib drwxr-xr-x 4 hh staff 128 Sep 23 02:52 log drwxr-xr-x 777 hh staff 24864 Sep 24 17:19 node_modules -rw-r--r-- 1 hh staff 339 Sep 24 17:19 package.json -rw-r--r-- 1 hh staff 224 Sep 23 00:53 postcss.config.js drwxr-xr-x 9 hh staff 288 Sep 22 01:45 public drwxr-xr-x 3 hh staff 96 Sep 22 01:45 storage drwxr-xr-x 12 hh staff 384 Sep 22 02:16 test drwxr-xr-x 6 hh staff 192 Sep 22 01:48 tmp drwxr-xr-x 4 hh staff 128 Sep 24 00:40 vendor -rw-r--r-- 1 hh staff 310320 Sep 23 00:54 yarn.lock となります。
退会済みユーザー

退会済みユーザー

2019/09/24 09:59

申し訳ありません、typoしてました。 以下のコマンドを実行して、再度 bundle install をしてみたらどうなるでしょうか。 $ rm -r .bundle
h.h

2019/09/24 10:07

MacBook-Pro$ rm -r .bundle MacBook-Pro$ bundle install --path vendor/bundle The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is inst alling for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x 86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock -- add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Using rake 12.3.3 Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using zeitwerk 2.1.10 Using activesupport 6.0.0 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.4 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.2.0 Using actionview 6.0.0 Using rack 2.0.7 Using rack-test 1.1.0 Using actionpack 6.0.0 Using nio4r 2.5.1 Using websocket-extensions 0.1.4 Using websocket-driver 0.7.1 Using actioncable 6.0.0 Using globalid 0.4.2 Using activejob 6.0.0 Using activemodel 6.0.0 Using activerecord 6.0.0 Using mimemagic 0.3.3 Using marcel 0.3.3 Using activestorage 6.0.0 Using mini_mime 1.0.2 Using mail 2.7.1 Using actionmailbox 6.0.0 Using actionmailer 6.0.0 Using actiontext 6.0.0 Using msgpack 1.3.1 Using bootsnap 1.4.5 Using bundler 2.0.2 Using ffi 1.11.1 Using jbuilder 2.9.1 Using method_source 0.9.2 Using mysql2 0.5.2 Using puma 3.12.1 Using rack-proxy 0.6.5 Using thor 0.20.3 Using railties 6.0.0 Using sprockets 3.7.2 Using sprockets-rails 3.2.1 Using rails 6.0.0 Using rb-fsevent 0.10.3 Using rb-inotify 0.10.0 Using sass-listen 4.0.0 Using sass 3.7.4 Using tilt 2.0.9 Using sass-rails 5.1.0 Using turbolinks-source 5.2.0 Using turbolinks 5.2.1 Using webpacker 4.0.7 Bundle complete! 18 Gemfile dependencies, 59 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into `./vendor/bundle` MacBook-Pro:$ bundle exec rails g rspec:install Could not find generator 'rspec:install'. Maybe you meant "scaffold"? Run `rails generate --help` for more options.
退会済みユーザー

退会済みユーザー

2019/09/24 10:10

次のコマンドの結果はどうなりますか? $ which bundler
h.h

2019/09/24 10:44

MacBook-Pro$ which bundler /Users/hh/.rbenv/shims/bundler です。
退会済みユーザー

退会済みユーザー

2019/09/24 10:45

次のコマンドを実行して bundle install をするとどうなりますか? $ RAILS_ENV=development bundle install --path vendor/bundle
h.h

2019/09/24 10:55 編集

MacBook-Pro$ RAILS_ENV=development bundle install --path vendor/bundle The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is inst alling for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x 86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock -- add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Using rake 12.3.3 Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using zeitwerk 2.1.10 Using activesupport 6.0.0 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.4 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.2.0 Using actionview 6.0.0 Using rack 2.0.7 Using rack-test 1.1.0 Using actionpack 6.0.0 Using nio4r 2.5.1 Using websocket-extensions 0.1.4 Using websocket-driver 0.7.1 Using actioncable 6.0.0 Using globalid 0.4.2 Using activejob 6.0.0 Using activejob 6.0.0 Using activemodel 6.0.0 Using activerecord 6.0.0 Using mimemagic 0.3.3 Using marcel 0.3.3 Using activestorage 6.0.0 Using mini_mime 1.0.2 Using mail 2.7.1 Using actionmailbox 6.0.0 Using actionmailer 6.0.0 Using actiontext 6.0.0 Using msgpack 1.3.1 Using bootsnap 1.4.5 Using bundler 2.0.2 Using ffi 1.11.1 Using jbuilder 2.9.1 Using method_source 0.9.2 Using mysql2 0.5.2 Using puma 3.12.1 Using rack-proxy 0.6.5 Using thor 0.20.3 Using railties 6.0.0 Using sprockets 3.7.2 Using sprockets-rails 3.2.1 Using rails 6.0.0 Using rb-fsevent 0.10.3 Using rb-inotify 0.10.0 Using sass-listen 4.0.0 Using sass 3.7.4 Using tilt 2.0.9 Using sass-rails 5.1.0 Using turbolinks-source 5.2.0 Using turbolinks 5.2.1 Using webpacker 4.0.7 Bundle complete! 18 Gemfile dependencies, 59 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into `./vendor/bundle` MacBook-Pro$ bundle install --path vendor/bundle The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is inst alling for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x 86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock -- add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Using rake 12.3.3 Using concurrent-ruby 1.1.5 Using i18n 1.6.0 Using minitest 5.11.3 Using thread_safe 0.3.6 Using tzinfo 1.2.5 Using zeitwerk 2.1.10 Using activesupport 6.0.0 Using builder 3.2.3 Using erubi 1.8.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.4 Using rails-dom-testing 2.0.3 Using crass 1.0.4 Using loofah 2.2.3 Using rails-html-sanitizer 1.2.0 Using actionview 6.0.0 Using rack 2.0.7 Using rack-test 1.1.0 Using actionpack 6.0.0 Using nio4r 2.5.1 Using websocket-extensions 0.1.4 Using websocket-driver 0.7.1 Using actioncable 6.0.0 Using globalid 0.4.2 Using activejob 6.0.0 Using activemodel 6.0.0 Using activerecord 6.0.0 Using mimemagic 0.3.3 Using marcel 0.3.3 Using activestorage 6.0.0 Using mini_mime 1.0.2 Using mail 2.7.1 Using actionmailbox 6.0.0 Using actionmailer 6.0.0 Using actiontext 6.0.0 Using msgpack 1.3.1 Using bootsnap 1.4.5 Using bundler 2.0.2 Using ffi 1.11.1 Using jbuilder 2.9.1 Using method_source 0.9.2 Using mysql2 0.5.2 Using puma 3.12.1 Using rack-proxy 0.6.5 Using thor 0.20.3 Using railties 6.0.0 Using sprockets 3.7.2 Using sprockets-rails 3.2.1 Using rails 6.0.0 Using rb-fsevent 0.10.3 Using rb-inotify 0.10.0 Using sass-listen 4.0.0 Using sass 3.7.4 Using tilt 2.0.9 Using sass-rails 5.1.0 Using turbolinks-source 5.2.0 Using turbolinks 5.2.1 Using webpacker 4.0.7 Bundle complete! 18 Gemfile dependencies, 59 gems now installed. Gems in the groups development and test were not installed. Bundled gems are installed into `./vendor/bundle` となりました。
退会済みユーザー

退会済みユーザー

2019/09/24 11:17

「次のコマンドを実行して bundle install をする」というのは、提示したコマンドだけを実行することになります。なので、別途bundle installする必要はありません(ただ、結果に影響はありません)。 これまでに挙げた内容以外ですと、私の方でこれ以上は思いつくことがありません。申し訳ありませんが、他の方の回答をお待ち下さい。
h.h

2019/09/24 11:33

ご対応誠にありがとうございました。
siruku6

2019/09/25 11:36

試しになんですが、rspec以外のgemを追加してbundle install してみたらどうでしょう? きちんと追加されますか? pry-rails とかすごく便利なので、もしまだ追加されてなかったら追加してみてください。 で、vendor/bundle/ruby/{rubyのバージョン}/gems/ 以下に追加されているか見てみましょう。
guest

0

まさかそんなことは無いと思いますが、g の書き忘れではありませんよね?
https://qiita.com/Mosac/items/f952cf6cb06c070d88db

bundle exec rails g rspec:install が正しそうですが、、、

投稿2019/09/22 09:13

siruku6

総合スコア1382

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

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

h.h

2019/09/22 10:12

脱字でした。gは書いてあります。 bundle exec rails g rspec:install でエラーが出ます。。
h.h

2019/09/22 11:12

ご返信ありがとうございます! 試しましたが表示変わらずでした。。
siruku6

2019/09/22 11:30

$ bundle exec rails g rspec:install 後のエラー内容は最初から変わっていませんよね? もし変わっていないようであれば、後はマシンの再起動などしかアドバイスできることが思い当たりません... あとは、gem rspec-rails が正しくinstallされているかどうか確かめるため、vendor/bundle/gemsディレクトリを見に行くとか、でしょうか
h.h

2019/09/22 12:14

vendor/bundle/gemsにはgem rspec-railsの記載がありませんでした。 原因はこれでしょうか?
siruku6

2019/09/23 04:26

申し訳ありません。若干pathを間違えていました vendor/bundle/ruby/{rubyのバージョン}/gems/ の中にrspec-railsのgemっぽいのがあるかどうかの確認でした
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問