aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorKir Shatrov <shatrov@me.com>2016-11-19 20:57:58 -0500
committerKir Shatrov <shatrov@me.com>2016-11-19 21:02:29 -0500
commit5abf662959aa2be98f4b5ce07c4051f530125e19 (patch)
tree375bbd6e54c4dce6033ca4a5187f51961d381c21 /activerecord
parent3a558aa2bc8ce3834ee79ff3346bcf5d7debbbd0 (diff)
downloadrails-5abf662959aa2be98f4b5ce07c4051f530125e19.tar.gz
rails-5abf662959aa2be98f4b5ce07c4051f530125e19.tar.bz2
rails-5abf662959aa2be98f4b5ce07c4051f530125e19.zip
Do not rely on Ruby implementation in AM test
Now a few tests in ActiveModel rely on Ruby implementation and the fact that in MRI `97.18` as a float is greater than `97.18` as a BigDecimal. This is only relevant for MRI. On JRuby, comparing float to BigDecimal would be conversion of them to the same type and they will be equal. I'd like the ActiveModel test suite to be Ruby implementation-agnostic. Here we test ActiveModel, not the Ruby internals. This PR fixes a couple more JRuby tests.
Diffstat (limited to 'activerecord')
0 files changed, 0 insertions, 0 deletions