features/support/env.rb in spree_variant_options-0.1.1 vs features/support/env.rb in spree_variant_options-0.2.0
- old
+ new
@@ -3,12 +3,14 @@
require 'spork'
Spork.prefork do
require 'cucumber/rails'
+ require 'selenium/webdriver'
require 'factory_girl'
+
I18n.reload!
ActionController::Base.allow_rescue = false
Capybara.default_driver = :selenium
@@ -16,12 +18,14 @@
Cucumber::Rails::World.use_transactional_fixtures
DatabaseCleaner.strategy = :transaction
Spree::Config.set(:random => rand(1000))
+
end
Spork.each_run do
Dir["#{File.expand_path("../../../", __FILE__)}/test/support/**/*.rb"].each { |f| require f }
-
+ World(HelperMethods)
+
end