Created
October 4, 2014 19:38
-
-
Save joemsak/8e80105dd8d7234af948 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chronic' | |
describe Chronic do | |
def assert_parsed(input, bool = true) | |
(Chronic.parse(input) != nil).should == bool | |
end | |
it "doesn't seem to like timezones" do | |
assert_parsed('11/15/2013 11:56 PST', false) | |
assert_parsed('11/15/2013 11:56 -0400', false) | |
assert_parsed('11/15/2013 11:56') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment