1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/test/cases/validations
Kir Shatrov 5abf662959 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.
2016-11-19 21:02:29 -05:00
..
absence_validation_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
acceptance_validation_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
callbacks_test.rb code gardening: removes redundant selfs 2016-08-08 01:12:38 +02:00
conditional_validation_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
confirmation_validation_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
exclusion_validation_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
format_validation_test.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00
i18n_generate_message_validation_test.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
i18n_validation_test.rb Fix broken comments indentation caused by rubocop auto-correct [ci skip] 2016-09-14 18:26:32 +09:00
inclusion_validation_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
length_validation_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
numericality_validation_test.rb Do not rely on Ruby implementation in AM test 2016-11-19 21:02:29 -05:00
presence_validation_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
validates_test.rb modernizes hash syntax in activemodel 2016-08-06 19:37:12 +02:00
validations_context_test.rb improve error message when include assertions fail 2016-09-16 12:03:37 -07:00
with_validation_test.rb improve error message when include assertions fail 2016-09-16 12:03:37 -07:00