spec/lib/sysloggable/logger_spec.rb in sysloggable-0.1.0 vs spec/lib/sysloggable/logger_spec.rb in sysloggable-0.2.0

- old
+ new

@@ -30,6 +30,13 @@ Timecop.freeze(Time.now.utc + 10) end Timecop.return end + + context 'when ident is invalid' do + subject(:logger) { described_class.new(ident: '22222' * 5) } + it 'raises error' do + expect{ logger.info('msg') }.to raise_error(ArgumentError) + end + end end