test/test_helper.rb in mm-devise-1.1.10 vs test/test_helper.rb in mm-devise-1.2
- old
+ new
@@ -6,21 +6,22 @@
require "rails_app/config/environment"
require "rails/test_help"
require "orm/#{DEVISE_ORM}"
-MongoMapper.connection = Mongo::Connection.new(ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost')
-MongoMapper.database = 'mm-devise-db'
-
I18n.load_path << "#{DEVISE_PATH}/test/support/locale/en.yml"
-require 'mocha'
+require 'mocha'
+require 'webrat'
Webrat.configure do |config|
config.mode = :rails
config.open_error_files = false
end
-#Devise::Oauth.test_mode!
-
# Add support to load paths so we can overwrite broken webrat setup
$:.unshift "#{DEVISE_PATH}/test/support"
Dir["#{DEVISE_PATH}/test/support/**/*.rb"].each { |f| require f }
+
+# For generators
+require "rails/generators/test_case"
+require "generators/devise/install_generator"
+require "generators/devise/views_generator"