spec/spec_helper.rb in detour-0.0.3 vs spec/spec_helper.rb in detour-0.0.5

- old
+ new

@@ -19,13 +19,16 @@ Capybara.javascript_driver = :poltergeist config.mock_with :rspec config.use_transactional_fixtures = false config.infer_base_class_for_anonymous_controllers = false + config.color = true config.order = "random" config.include FactoryGirl::Syntax::Methods + I18n.enforce_available_locales = false + config.after :each do Rake::Task.tasks.each { |t| t.reenable } end config.before :suite do @@ -48,9 +51,10 @@ DatabaseCleaner.clean end config.before :each do User.instance_variable_set "@detour_flaggable_find_by", :id + Detour.config.instance_variable_set "@defined_groups", {} end config.after :each do Detour.config.default_flaggable_class_name = nil Detour.config.grep_dirs = []