test/test_helper.rb in devise-encryptable-0.1.1 vs test/test_helper.rb in devise-encryptable-0.1.2
- old
+ new
@@ -1,20 +1,21 @@
+ENV["RAILS_ENV"] = "test"
require "devise"
require "active_support/core_ext/module/attribute_accessors"
require "devise/encryptable/encryptable"
require "minitest/autorun"
require "minitest/unit"
-require "mocha"
+require "mocha/setup"
require "rails_app/config/environment"
require 'support/assertions'
require 'support/factories'
require 'support/swappers'
ActiveRecord::Migration.verbose = false
ActiveRecord::Base.logger = Logger.new(nil)
-ActiveRecord::Migrator.migrate(File.expand_path("test/rails_app/db/migrate"))
\ No newline at end of file
+ActiveRecord::Migrator.migrate(File.expand_path("test/rails_app/db/migrate"))