[rspec-users] Fixtures are not loaded while running controller spec
Amit Kulkarni
lists at ruby-forum.com
Fri Jun 12 02:10:19 EDT 2009
David Chelimsky wrote:
> On Thu, Jun 11, 2009 at 11:50 AM, Amit Kulkarni<lists at ruby-forum.com>
> wrote:
>> � require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
>> � �if @user
>> �id: 1
>> amit:
>> I dont know what is wrong.
>> Please suggest :-)
>
> Make sure that the fixtures are in the same place that is declared in
> spec/spec_helper.rb.
My fixtures are under spec/fixtures directory.
Earlier it were working fine.But suddenly i dont know what went wrong.
Also i checked that if i comment fixtures line then the specs are
running fine.
Again when i uncomment the fixtures line then it is not working and
fixtures are not getting loaded.
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list