hpoydar-chronic_duration 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/spec/chronic_duration_spec.rb +5 -0
- metadata +1 -1
@@ -48,6 +48,11 @@ end
|
|
48
48
|
|
49
49
|
describe ChronicDuration, '.output' do
|
50
50
|
|
51
|
+
it "should return nil if the input can't be parsed" do
|
52
|
+
ChronicDuration.parse('gobblygoo').should be_nil
|
53
|
+
end
|
54
|
+
|
55
|
+
|
51
56
|
@exemplars = {
|
52
57
|
'1 min 20 secs' => 60 + 20,
|
53
58
|
'1 min 20.51 secs' => 60 + 20.51,
|