search for: reset_cach

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

Did you mean: reset_cache
2011 Aug 10
1
How to stop Rspec loading my Cucumber fixtures
...a bunch of fixtures 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(fixt...