[rspec-devel] [ rspec-Bugs-8991 ] Fixtures not loading from spec_helper
noreply at rubyforge.org
noreply at rubyforge.org
Fri Mar 2 07:34:17 EST 2007
Bugs item #8991, was opened at 2007-03-02 23:34
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8991&group_id=797
Category: rails plugin
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Simon Harris (haruki_zaemon)
Assigned to: Nobody (None)
Summary: Fixtures not loading from spec_helper
Initial Comment:
When I load fixtures from spec_helper.rb I get
NoMethodError in 'The Source File model should be valid when name and content root are present and unique'
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.[]
However all the tests pass when I load the fixtures from the specs.
I'd rather not use fixtures but I've converted an entire application from standard rails tests to specs.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=3149&aid=8991&group_id=797
More information about the rspec-devel
mailing list