spec/unit/logger_spec.rb in watir-6.14.0 vs spec/unit/logger_spec.rb in watir-6.15.0
- old
+ new
@@ -22,9 +22,14 @@
it 'allows to change level during execution' do
Watir.logger.level = :info
expect(Watir.logger.level).to eq(1)
end
+ it 'allows to change level with integer' do
+ Watir.logger.level = 3
+ expect(Watir.logger.level).to eq(3)
+ end
+
it 'outputs to stdout by default' do
expect { Watir.logger.warn('message') }.to output(/WARN Watir message/).to_stdout_from_any_process
end
it 'allows to output to file' do