ruby/rails 用のテスト NitrousIO ボックス内に rspec をインストールしました。簡単なテストを実行しようとしていますが、エラーが発生しました:
action@testbox-11814:~$ rspec thetest.rb
/home/action/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load suc
h file -- test (LoadError)
from /home/action/.rvm/rubies/ruby-2.0.0-p195/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from /home/action/thetest.rb:1:in `<top (required)>'
from /home/action/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `load'
from /home/action/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `block in load_spec_
files'
from /home/action/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `each'
from /home/action/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/configuration.rb:896:in `load_spec_files'
from /home/action/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/command_line.rb:22:in `run'
from /home/action/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/runner.rb:80:in `run'
from /home/action/.rvm/gems/ruby-2.0.0-p195/gems/rspec-core-2.14.2/lib/rspec/core/runner.rb:17:in `block in autorun'
「test」と「thetest」の 2 つの .rb ファイルがあります。この最後のファイルは仕様です。名前は申し訳ありませんが、非常に奇妙ですが、NitrousIO から始めたばかりです :)
「rspec thetest」を実行している.rbを省略すると、同じ問題が発生します