Permalink
Browse files

Fix tests for 1.8.7

  • Loading branch information...
1 parent f831463 commit ddcab46190102ac8399ebd791eece6ea3c51ebbc @arnau committed Jul 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/iso8601/duration_spec.rb
@@ -135,7 +135,7 @@
it "should return the seconds of a PT[n]H[n]M duration" do
ISO8601::Duration.new('PT10S', ISO8601::DateTime.new('2012-01-01')).to_seconds.should == (Time.utc(2012, 1, 1, 0, 0, 10) - Time.utc(2012, 1))
- ISO8601::Duration.new('PT10.4S', ISO8601::DateTime.new('2012-01-01')).to_seconds.should == (Time.utc(2012, 1, 1, 0, 0, 10.4) - Time.utc(2012, 1))
+ ISO8601::Duration.new('PT10.4S', ISO8601::DateTime.new('2012-01-01')).to_seconds.should == 10.4
end
end

0 comments on commit ddcab46

Please sign in to comment.