aboutsummaryrefslogtreecommitdiffstats
path: root/test/nodes/test_table_alias.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-11-29 17:22:17 -0700
committerSean Griffin <sean@thoughtbot.com>2014-11-29 17:22:17 -0700
commit98fc25991137ee09b6800578117f8c1c322680f2 (patch)
tree038381ae4465d6ea9950ecda9ef10822fd3ff9c6 /test/nodes/test_table_alias.rb
parent7508284800f67b4611c767bff9eae7045674b66f (diff)
downloadrails-98fc25991137ee09b6800578117f8c1c322680f2.tar.gz
rails-98fc25991137ee09b6800578117f8c1c322680f2.tar.bz2
rails-98fc25991137ee09b6800578117f8c1c322680f2.zip
Remove `engine` from `TreeManager` and subclasses
This constructor parameter was unused for everything except the convenience methods `to_sql` and `where_sql`. We can pass the engine into those methods directly.
Diffstat (limited to 'test/nodes/test_table_alias.rb')
-rw-r--r--test/nodes/test_table_alias.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/test/nodes/test_table_alias.rb b/test/nodes/test_table_alias.rb
index e30f97b748..57c9a42fc6 100644
--- a/test/nodes/test_table_alias.rb
+++ b/test/nodes/test_table_alias.rb
@@ -4,13 +4,6 @@ require 'ostruct'
module Arel
module Nodes
describe 'table alias' do
- it 'has an #engine which delegates to the relation' do
- relation = OpenStruct.new(engine: 'vroom')
-
- node = TableAlias.new relation, :foo
- node.engine.must_equal 'vroom'
- end
-
describe 'equality' do
it 'is equal with equal ivars' do
relation1 = Table.new(:users)