[rspec-users] cucumber and fixtures
Daniel Higginbotham
lists at ruby-forum.com
Thu Oct 9 10:30:42 EDT 2008
Pat Maddox wrote:
> Daniel Higginbotham <lists at ruby-forum.com> writes:
>
>>> ActiveRecord::Schema.verbose = false
>>> { :name => "blah", :id => 1 },
>>
>> end
>> end
>>
>> Are you similarly able to load your YAML fixtures from spec/fixtures
>> when you're running a Cucumber feature?
>>
>> Thanks,
>> Daniel Higginbotham
>
> I don't know that it's built into Cucumber, but loading fixtures is
> pretty simple from what I remember. Something like
> AR::Fixtures.load('path/to/file.yml') or something. Look around and I'm
> sure you can find the couple lines to make it work.
>
> Pat
Thanks Pat!
It looks like
Fixtures.create_fixtures("spec/fixtures", "users")
works.
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list