aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-08-16 20:35:39 +0900
committerGitHub <noreply@github.com>2018-08-16 20:35:39 +0900
commit3ef3a921797c514ac48a019bfb229de200f1ba77 (patch)
treee3b2d374d67776bd1cfa5dce43d9d28d7ba969df /activerecord/test/cases/associations
parent265eeb25592cccb1918641290c1b0259f700d02c (diff)
parent2fece9036d8ea778fca63a0d5df9a9dfc330dfa5 (diff)
downloadrails-3ef3a921797c514ac48a019bfb229de200f1ba77.tar.gz
rails-3ef3a921797c514ac48a019bfb229de200f1ba77.tar.bz2
rails-3ef3a921797c514ac48a019bfb229de200f1ba77.zip
Merge pull request #33603 from kamipo/fix_numericality_validator
Fix numericality validator not to be affected by custom getter
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
index f414fbf64b..482302055d 100644
--- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
+++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb
@@ -781,7 +781,7 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase
end
def test_has_many_through_polymorphic_has_manys_works
- assert_equal [10, 20].to_set, pirates(:redbeard).treasure_estimates.map(&:price).to_set
+ assert_equal ["$10.00", "$20.00"].to_set, pirates(:redbeard).treasure_estimates.map(&:price).to_set
end
def test_symbols_as_keys