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 Dec 20, 2017
1 parent a503dca commit ed4ac03
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 @@ -180,6 +180,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 ed4ac03

Please sign in to comment.