On 5/09/2007, at 10:00 AM, David Chelimsky wrote: > This looks like the same error - can you run just the file w/ this > spec like this: > > spec path/to/file.rb -b > > That'll produce the full backtrace. > > Thanks
Yeah it does look similar (I was reading the bug report last night) You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.<< /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/ helpers/prototype_helper.rb:538:in `<<' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/ helpers/prototype_helper.rb:695:in `initialize' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/ helpers/prototype_helper.rb:616:in `new' /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/ helpers/prototype_helper.rb:616:in `method_missing' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/matchers.rb: 159:in `method_missing' ./spec/helper/comments_helper_spec.rb:50: /opt/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/ action_controller/test_process.rb:488:in `with_routing' ./spec/helper/comments_helper_spec.rb:37: /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/example.rb: 81:in `instance_eval' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/example.rb: 81:in `run_example' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/example.rb: 26:in `run' /opt/local/lib/ruby/1.8/timeout.rb:48:in `timeout' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/example.rb: 24:in `run' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/ behaviour.rb:81:in `run' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/ behaviour.rb:75:in `each' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/dsl/ behaviour.rb:75:in `run' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/ behaviour_runner.rb:58:in `run_behaviours' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/ behaviour_runner.rb:57:in `each' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/ behaviour_runner.rb:57:in `run_behaviours' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/ behaviour_runner.rb:21:in `run' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/runner/ command_line.rb:17:in `run' /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/bin/spec:3: /opt/local/bin/spec:16:in `load' /opt/local/bin/spec:16: _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users