aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes/test_select_core.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-04-08 21:33:04 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-04-08 21:33:04 -0700
commitba577e539f585fd09dc96d70527b5f94e35b2971 (patch)
tree6faf6cf8c7638dd0bc0638e154d939f15e785905 /test/nodes/test_select_core.rb
parent307f89312353d1360ee547468ebaaf8791889d71 (diff)
downloadrails-ba577e539f585fd09dc96d70527b5f94e35b2971.tar.gz
rails-ba577e539f585fd09dc96d70527b5f94e35b2971.tar.bz2
rails-ba577e539f585fd09dc96d70527b5f94e35b2971.zip
fixing select core tests
Diffstat (limited to 'test/nodes/test_select_core.rb')
-rw-r--r--test/nodes/test_select_core.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/nodes/test_select_core.rb b/test/nodes/test_select_core.rb
index 9aca0cff16..ca4f070444 100644
--- a/test/nodes/test_select_core.rb
+++ b/test/nodes/test_select_core.rb
@@ -11,20 +11,20 @@ module Arel
dolly = core.clone
- dolly.froms.must_equal core.froms
- dolly.projections.must_equal core.projections
- dolly.wheres.must_equal core.wheres
+ assert_equal core.froms, dolly.froms
+ assert_equal core.projections, dolly.projections
+ assert_equal core.wheres, dolly.wheres
- dolly.froms.wont_be_same_as core.froms
- dolly.projections.wont_be_same_as core.projections
- dolly.wheres.wont_be_same_as core.wheres
+ refute_same core.froms, dolly.froms
+ refute_same core.projections, dolly.projections
+ refute_same core.wheres, dolly.wheres
end
def test_set_quantifier
core = Arel::Nodes::SelectCore.new
core.set_quantifier = Arel::Nodes::Distinct.new
viz = Arel::Visitors::ToSql.new Table.engine.connection_pool
- assert_match 'DISTINCT', viz.accept(core)
+ assert_match 'DISTINCT', viz.accept(core, Collectors::SQLString.new).value
end
def test_equality_with_same_ivars