[rspec-devel] [ rspec-Bugs-8991 ] Fixtures not loading from spec_helper
noreply at rubyforge.org
noreply at rubyforge.org
Fri Mar 2 07:45:32 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: Closed
>Resolution: Rejected
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.
----------------------------------------------------------------------
>Comment By: Simon Harris (haruki_zaemon)
Date: 2007-03-02 23:45
Message:
Update: Actually what was happening is that errors
encountered while loading the fixtures were being
surpressed. So I'd suggest that be fixed but in general the
fixtures loading is working as advertised.
----------------------------------------------------------------------
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