spec/spec_helper.rb in ridgepole-0.8.10 vs spec/spec_helper.rb in ridgepole-0.8.11
- old
+ new
@@ -23,13 +23,14 @@
require 'erb_helper'
RSpec.configure do |config|
config.before(:all) do
- if condition(:debug)
+ if condition(:debug) || condition(:verbose)
ActiveRecord::Migration.verbose = true
logger = Ridgepole::Logger.instance
logger.level = ::Logger::DEBUG
+ logger.verbose = condition(:verbose)
ActiveRecord::Base.logger = logger
else
ActiveRecord::Migration.verbose = false
Ridgepole::Logger.instance.level = ::Logger::ERROR
end