Skip to content

Commit

Permalink
Test for sanity check
Browse files Browse the repository at this point in the history
  • Loading branch information
avit committed Aug 17, 2017
1 parent 83802a9 commit 34299c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/data/zone_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34299c7

Please sign in to comment.