[rspec-devel] [ rspec-Bugs-6094 ] rspec_on_rails pre-commit fails w/ -b option turned off

noreply at rubyforge.org noreply at rubyforge.org
Wed Oct 11 00:45:45 EDT 2006


Bugs item #6094, was opened at 2006-10-11 04:45
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6094&group_id=797

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: David Chelimsky (dchelimsky)
Assigned to: Nobody (None)
Summary: rspec_on_rails pre-commit fails w/ -b option turned off

Initial Comment:
This is in the trunk as of revision 868.

Go to ~/vendor/rspec_on_rails/lib/tasks/bootstrap_rspec.rake and remove or comment the line that reads:

  t.spec_opts = ['-b']

Stand in ~/vendor/rspec_on-rails and execute:

  ../../bin/spec spec
  ../../bin/spec specs

Everything should pass

Now try this:

  rake pre_commit

You'll get the following error (or similar):

1)
NoMethodError in 'Given an rjs call to insert html in a div, a 'should_not_have_rjs' spec with no text but wrong element name should pass'
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.size
generated_code/routing/generation.rb:30:in `generate_default_path'
./specs/should_not_have_rjs_spec.rb:99:in `setup'
/Users/david/projects/ruby/rspec-all/trunk/vendor/rspec_on_rails/vendor/plugins/rspec/lib/extensions/spec/runner/context.rb:30:in `run'



----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=6094&group_id=797


More information about the rspec-devel mailing list