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
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
..
serializers improve error message when include assertions fail 2016-09-16 12:03:37 -07:00
type Merge pull request #26935 from y-yagi/fix_ruby_warning 2016-10-31 07:01:55 +00:00
validations Do not rely on Ruby implementation in AM test 2016-11-19 21:02:29 -05:00
attribute_assignment_test.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
attribute_methods_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
callbacks_test.rb code gardening: removes redundant selfs 2016-08-08 01:12:38 +02:00
conversion_test.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
dirty_test.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
errors_test.rb Removed deprecated methods in ActiveModel::Errors 2016-10-10 20:22:15 -03:00
forbidden_attributes_protection_test.rb normalizes indentation and whitespace across the project 2016-08-06 20:16:27 +02:00
helper.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
lint_test.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
model_test.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
naming_test.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
railtie_test.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
secure_password_test.rb applies new string literal convention in activemodel/test 2016-08-06 18:38:23 +02:00
serialization_test.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
translation_test.rb Add three new rubocop rules 2016-08-16 04:30:11 -03:00
validations_test.rb improve error message when include assertions fail 2016-09-16 12:03:37 -07:00