diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-17 01:56:18 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-17 02:44:37 +0900 |
commit | 311f00116738df175c12cb36bebe79587f88e00b (patch) | |
tree | fea3f6a24513a1b5919ed9750ede3810822c79a3 /activerecord/test/cases/relation/mutation_test.rb | |
parent | 263cfd5cad703a789d56c7e4bb269255048eeeef (diff) | |
download | rails-311f00116738df175c12cb36bebe79587f88e00b.tar.gz rails-311f00116738df175c12cb36bebe79587f88e00b.tar.bz2 rails-311f00116738df175c12cb36bebe79587f88e00b.zip |
Fix `order` with custom attributes
This follows up 0ee96d13de29680e148ccb8e5b68025f29fd091c.
Diffstat (limited to 'activerecord/test/cases/relation/mutation_test.rb')
-rw-r--r-- | activerecord/test/cases/relation/mutation_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/relation/mutation_test.rb b/activerecord/test/cases/relation/mutation_test.rb index f82ecd4449..96249b8d51 100644 --- a/activerecord/test/cases/relation/mutation_test.rb +++ b/activerecord/test/cases/relation/mutation_test.rb @@ -26,7 +26,7 @@ module ActiveRecord assert relation.order!(:name).equal?(relation) node = relation.order_values.first assert_predicate node, :ascending? - assert_equal :name, node.expr.name + assert_equal "name", node.expr.name assert_equal "posts", node.expr.relation.name end @@ -89,7 +89,7 @@ module ActiveRecord node = relation.order_values.first assert_predicate node, :ascending? - assert_equal :name, node.expr.name + assert_equal "name", node.expr.name assert_equal "posts", node.expr.relation.name end |