spec/spec_helper.rb in kt-paperclip-7.2.1 vs spec/spec_helper.rb in kt-paperclip-7.2.2
- old
+ new
@@ -19,9 +19,10 @@
FIXTURES_DIR = File.join(File.dirname(__FILE__), "fixtures")
config = YAML::safe_load(IO.read(File.dirname(__FILE__) + "/database.yml"))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config["test"])
+ActiveRecord::Migration.verbose = false
if ActiveRecord::VERSION::STRING >= "4.2" &&
ActiveRecord::VERSION::STRING < "5.0"
ActiveRecord::Base.raise_in_transactional_callbacks = true
end
Paperclip.options[:logger] = ActiveRecord::Base.logger