I'm new to rspec. I just installed these:<br><br>rspec (0.7.4) RSpec-0.7.4 (r1201) (rspec gem)<br>rspec_on_rails .3 plugin (on vendor/plugin)<br><br>I've set up a simple spec - spec/library/test_spec.rb:<br><br>require
File.dirname(__FILE__) + '/../spec_helper'<br>context "test context" do<br><br> setup do<br> #nothing<br> end<br><br> specify "nothing to specify" do<br> #nothing<br> end<br>end <br><br><br>
When I run this spec as follows:<br><br>spec spec/library/test_spec.rb<br><br>(or any spec for that matter), I get the following error:<br><br>$> spec spec/library/test_spec.rb<br><br>./spec/library/../../vendor/plugins/rspec_on_rails/lib/rspec_on_rails.rb:38:in `run': You have a nil object when you didn't expect it! (NoMethodError)
<br>You might have expected an instance of Array.<br>The error occured while evaluating nil.each from /usr/local/lib/ruby/gems/1.8/gems/rspec-0.7.4/lib/spec/runner/context_runner.rb:23:in `run'<br> from /usr/local/lib/ruby/gems/1.8/gems/rspec-
0.7.4/lib/spec/runner/context_runner.rb:22:in `run'<br> from /usr/local/lib/ruby/gems/1.8/gems/rspec-0.7.4/lib/spec/runner/command_line.rb:26:in `run'<br> from /usr/local/lib/ruby/gems/1.8/gems/rspec-0.7.4/bin/spec:4
<br> from /usr/local/bin/spec:18<br><br>I don't have any idea what is causing this, or how to fix it. Any suggestions would be greatly appreciated. Thanks.<br>