Commit b0d063303a26afc68d1840e79e0972684b4ebb5d
1 parent
c5247a0e
Exists in
master
and in
29 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 | ... | ... |