Displaying 1 result from an estimated 1 matches for "reset_cache".
Did you mean:
fset_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(fixtu...