railsでの開発中にやむを得ずrspecの更新をしてしまいました。(前のバージョンは覚えていません)
更新をするまえまでは、テストはできていたのですが、更新後できなくなってしまいました。
generate specなどのコマンドで新しくファイルを作るのが最善でしょうか?
もし、そうなら古いspecのファイルは何を消せばいいのかなど手順を教えてください。
それよりも良い作があったら教えてください。お願いします。
$ bundle exec rspec spec/models/user_spec.rb bundler: failed to load command: rspec (/Users/mypc/.rbenv/versions/2.3.1/bin/rspec) LoadError: cannot load such file -- /Users/mypc/myapp/app/spec/models/user_spec.rb /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/configuration.rb:1435:in `load' /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files' /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/configuration.rb:1433:in `each' /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/configuration.rb:1433:in `load_spec_files' /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/runner.rb:100:in `setup' /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/runner.rb:86:in `run' /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/runner.rb:71:in `run' /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/runner.rb:45:in `invoke' /Users/mypc/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rspec-core-3.5.3/exe/rspec:4:in `<top (required)>' /Users/mypc/.rbenv/versions/2.3.1/bin/rspec:23:in `load' /Users/mypc/.rbenv/versions/2.3.1/bin/rspec:23:in `<top (required)>'
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。