diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:38:23 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-06 18:38:23 +0200 |
commit | 4c208254573c3428d82bd8744860bd86e1c78acb (patch) | |
tree | 9c8194acb75552fdda62d527d5c2876da9161650 /activemodel/test/cases/type/decimal_test.rb | |
parent | 18a2513729ab90b04b1c86963e7d5b9213270c81 (diff) | |
download | rails-4c208254573c3428d82bd8744860bd86e1c78acb.tar.gz rails-4c208254573c3428d82bd8744860bd86e1c78acb.tar.bz2 rails-4c208254573c3428d82bd8744860bd86e1c78acb.zip |
applies new string literal convention in activemodel/test
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
Diffstat (limited to 'activemodel/test/cases/type/decimal_test.rb')
-rw-r--r-- | activemodel/test/cases/type/decimal_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activemodel/test/cases/type/decimal_test.rb b/activemodel/test/cases/type/decimal_test.rb index 1950566c0e..46a913258e 100644 --- a/activemodel/test/cases/type/decimal_test.rb +++ b/activemodel/test/cases/type/decimal_test.rb @@ -48,9 +48,9 @@ module ActiveModel def test_changed? type = Decimal.new - assert type.changed?(5.0, 5.0, '5.0wibble') - assert_not type.changed?(5.0, 5.0, '5.0') - assert_not type.changed?(-5.0, -5.0, '-5.0') + assert type.changed?(5.0, 5.0, "5.0wibble") + assert_not type.changed?(5.0, 5.0, "5.0") + assert_not type.changed?(-5.0, -5.0, "-5.0") end def test_scale_is_applied_before_precision_to_prevent_rounding_errors |