Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix failing tests related to where values change to strings

Introduced in 5dc2e35.
  • Loading branch information...
commit 4620bdcefd0c88905a005f191496df887877b8f3 1 parent ddd2c75
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 activerecord/test/cases/relation_scoping_test.rb
View
14 activerecord/test/cases/relation_scoping_test.rb
@@ -390,20 +390,20 @@ def test_default_scoping_with_threads
def test_default_scope_with_inheritance
wheres = InheritedPoorDeveloperCalledJamis.all.where_values_hash
- assert_equal "Jamis", wheres[:name]
- assert_equal 50000, wheres[:salary]
+ assert_equal "Jamis", wheres['name']
+ assert_equal 50000, wheres['salary']
end
def test_default_scope_with_module_includes
wheres = ModuleIncludedPoorDeveloperCalledJamis.all.where_values_hash
- assert_equal "Jamis", wheres[:name]
- assert_equal 50000, wheres[:salary]
+ assert_equal "Jamis", wheres['name']
+ assert_equal 50000, wheres['salary']
end
def test_default_scope_with_multiple_calls
wheres = MultiplePoorDeveloperCalledJamis.all.where_values_hash
- assert_equal "Jamis", wheres[:name]
- assert_equal 50000, wheres[:salary]
+ assert_equal "Jamis", wheres['name']
+ assert_equal 50000, wheres['salary']
end
def test_scope_overwrites_default
@@ -563,7 +563,7 @@ def test_unscope_errors_with_non_symbol_or_hash_arguments
Developer.select("id").unscope("select")
end
- assert_raises(ArgumentError) do
+ assert_raises(ArgumentError) do
Developer.select("id").unscope(5)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.