diff --git a/spec/data/zone_spec.rb b/spec/data/zone_spec.rb index 05ae2ab..f4f816f 100644 --- a/spec/data/zone_spec.rb +++ b/spec/data/zone_spec.rb @@ -176,6 +176,10 @@ def stub_time(utc_now) expect( ZoneOffset.detect?('August 9, 6:56 AM -10') ).to be true end + it 'returns false when only given a year' do + expect( ZoneOffset.detect?('August 9, 6:56 AM 2017') ).to be false + end + it 'returns false when part of a date' do expect( ZoneOffset.detect?('2017-10-10') ).to be false end