nostradamus 0.0.1 → 0.0.2
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/lib/nostradamus/version.rb +1 -1
- data/lib/nostradamus.rb +1 -1
- data/spec/nostradamus/nostradamus_spec.rb +4 -4
- metadata +1 -1
data/lib/nostradamus/version.rb
CHANGED
data/lib/nostradamus.rb
CHANGED
@@ -4,10 +4,10 @@ require 'nostradamus'
|
|
4
4
|
describe Nostradamus do
|
5
5
|
context "human time to seconds" do
|
6
6
|
it "should parse human time to seconds" do
|
7
|
-
described_class.
|
8
|
-
described_class.
|
9
|
-
described_class.
|
10
|
-
described_class.
|
7
|
+
described_class.parse("12:00").should eq 43200
|
8
|
+
described_class.parse("12:00:00").should eq 43200
|
9
|
+
described_class.parse("12:15").should eq 44100
|
10
|
+
described_class.parse("12:15:15").should eq 44115
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|