hpoydar-chronic_duration 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,
|