features/support/env.rb in mail_manager-0.1.4 vs features/support/env.rb in mail_manager-3.0.0

- old
+ new

@@ -1,31 +1,11 @@ # Sets up the Rails environment for Cucumber ENV["RAILS_ENV"] ||= "test" ENV["RAILS_ROOT"] ||= File.dirname(__FILE__) + "/../../spec/test_app" require File.expand_path(ENV['RAILS_ROOT'] + "/config/environment.rb") +require 'database_cleaner' require 'cucumber/rails/world' require 'cucumber/formatter/unicode' # Comment out this line if you don't want Cucumber Unicode support -Cucumber::Rails.use_transactional_fixtures -Cucumber::Rails.bypass_rescue # Comment out this line if you want Rails own error handling - # (e.g. rescue_action_in_public / rescue_responses / rescue_from) -require 'webrat' +`rake db:schema:load` -Webrat.configure do |config| - config.mode = :rails -end - -require 'cucumber/rails/rspec' -require 'webrat/core/matchers' - -`rake db:test:clone_structure` - -require "#{MailManager::PLUGIN_ROOT}/spec/factories" -require 'pickle/world' -# Example of configuring pickle: -# -#Pickle.configure do |config| -# config.adapters = [:factory_girl] - #config.map 'I', 'myself', 'me', 'my', :to => 'user: "me"' -#end -require 'pickle/path/world' -require 'pickle/email/world' \ No newline at end of file +#require "#{MailManager::PLUGIN_ROOT}/spec/factories"