Commit 4d2711a00a6aaa6dd0ee816d4e515c0b5e9919f5
Committed by
Daniela Feitosa
1 parent
414bf711
Exists in
master
and in
29 other branches
Loading some fixtures at cucumber boot
Showing
2 changed files
with
7 additions
and
6 deletions
Show diff stats
features/support/env.rb
@@ -55,3 +55,10 @@ if defined?(ActiveRecord::Base) | @@ -55,3 +55,10 @@ if defined?(ActiveRecord::Base) | ||
55 | rescue LoadError => ignore_if_database_cleaner_not_present | 55 | rescue LoadError => ignore_if_database_cleaner_not_present |
56 | end | 56 | end |
57 | end | 57 | end |
58 | + | ||
59 | +Before do | ||
60 | + Fixtures.reset_cache | ||
61 | + fixtures_folder = File.join(RAILS_ROOT, 'test', 'fixtures') | ||
62 | + fixtures = ['environments', 'roles'] | ||
63 | + Fixtures.create_fixtures(fixtures_folder, fixtures) | ||
64 | +end |
features/support/fixtures.rb