blob: 1a556b630176c40d4d8104f3b061b75791f58ad7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Ruby 1.9.3 no longer makes a long number a BigDecimal, it seems.
https://github.com/sferik/multi_xml/issues/18
--- spec/parser_shared_example.rb.~1~ 2011-12-28 12:54:08.770134726 +0100
+++ spec/parser_shared_example.rb 2011-12-28 12:54:55.186385918 +0100
@@ -302,7 +302,7 @@
end
it "should return the correct number" do
- MultiXml.parse(@xml)['tag'].should == 3.14159265358979323846264338327950288419716939937510
+ MultiXml.parse(@xml)['tag'].should == BigDecimal.new('3.14159265358979323846264338327950288419716939937510')
end
end
|