Skip to content

Commit

Permalink
Silence ActiveRecord logs during persistence specs running temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
gussan committed Apr 12, 2017
1 parent 9cb0f79 commit 85a2074
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
describe ActiveRecord::Turntable::ActiveRecordExt::Persistence do
around do |example|
old = ActiveRecord::Base.logger
ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Base.logger = Logger.new("/dev/null")
example.run
ActiveRecord::Base.logger = old
end
Expand Down

0 comments on commit 85a2074

Please sign in to comment.