Commit 6ec782f6c8d9a551b1ba7fd07d9cc796d5b68237
Committed by
Daniela Feitosa
1 parent
b0f293d7
Exists in
master
and in
28 other branches
removing duplicated code
Showing
1 changed file
with
0 additions
and
16 deletions
Show diff stats
features/support/selenium.rb
| 1 | -require 'rbconfig' | |
| 2 | -require 'cucumber/formatter/unicode' | |
| 3 | - | |
| 4 | -require 'capybara' | |
| 5 | -require 'capybara/dsl' | |
| 6 | -require "capybara/cucumber" | |
| 7 | - | |
| 8 | -require 'database_cleaner' | |
| 9 | -require 'database_cleaner/cucumber' | |
| 10 | - | |
| 11 | 1 | Cucumber::Rails::World.use_transactional_fixtures = false |
| 12 | 2 | |
| 13 | 3 | Capybara.default_driver = :selenium |
| ... | ... | @@ -19,16 +9,10 @@ DatabaseCleaner.clean_with :truncation |
| 19 | 9 | DatabaseCleaner.strategy = :truncation |
| 20 | 10 | |
| 21 | 11 | Before do |
| 22 | - Fixtures.reset_cache | |
| 23 | - fixtures_folder = File.join(RAILS_ROOT, 'test', 'fixtures') | |
| 24 | - fixtures = ['environments', 'roles'] | |
| 25 | - Fixtures.create_fixtures(fixtures_folder, fixtures) | |
| 26 | - ENV['LANG'] = 'C' | |
| 27 | 12 | DatabaseCleaner.start |
| 28 | 13 | end |
| 29 | 14 | |
| 30 | 15 | After do |
| 31 | - sleep 2 | |
| 32 | 16 | DatabaseCleaner.clean |
| 33 | 17 | end |
| 34 | 18 | ... | ... |