Skip to content

Prevent logging in test suite

Irio edited this page Jan 18, 2013 · 1 revision

Put in your test/test_helper.rb (Minitest), /spec/spec_helper.rb (RSpec) or /features/support/env.rb (Cucumber) the following lines:

# MyMoip
MyMoip.logger = Logger.new('/dev/null')
Clone this wiki locally