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.
Files changed (2) hide show
  1. data/spec/chronic_duration_spec.rb +5 -0
  2. 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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hpoydar-chronic_duration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henry Poydar