nostradamus 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
|