search for: fixtures_fold

Displaying 1 result from an estimated 1 matches for "fixtures_fold".

Did you mean: fixtures_folder
2011 Aug 10
1
How to stop Rspec loading my Cucumber fixtures
...s designed to populate the database for my Cucumber integration tests. But at this stage I want my database to be empty when using Rspec. So, I moved the fixtures from `/spec/fixtures` to `features/support/fixtures`, and updated `features/support/env.rb` to read: Fixtures.reset_cache fixtures_folder = File.join(RAILS_ROOT, ''features'', ''support'', ''fixtures'') fixtures = Dir[File.join(fixtures_folder, ''*.yml'')].map {|f| File.basename(f, ''.yml'') } Fixtures.create_fixtures(fixtures_folder, fixtures...