spec/rflow/logger_spec.rb in rflow-1.0.1 vs spec/rflow/logger_spec.rb in rflow-1.1.0
- old
+ new
@@ -15,34 +15,34 @@
end
let(:logger) { @logger }
before(:each) { initialize_logger }
- it "should initialize correctly" do
+ it 'should initialize correctly' do
expect(File.exist?(log_file_path)).to be true
- logger.error "TESTTESTTEST"
+ logger.error 'TESTTESTTEST'
expect(File.read(log_file_path)).to match(/TESTTESTTEST/)
logger.close
end
- it "should reopen correctly" do
+ it 'should reopen correctly' do
moved_path = log_file_path + '.old'
expect(File.exist?(log_file_path)).to be true
expect(File.exist?(moved_path)).to be false
File.rename log_file_path, moved_path
logger.reopen
- logger.error "TESTTESTTEST"
+ logger.error 'TESTTESTTEST'
expect(File.read(log_file_path)).to match(/TESTTESTTEST/)
expect(File.read(moved_path)).not_to match(/TESTTESTTEST/)
logger.close
end
- it "should toggle log level"
+ it 'should toggle log level'
end
end