From 98fc25991137ee09b6800578117f8c1c322680f2 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Sat, 29 Nov 2014 17:22:17 -0700 Subject: 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. --- test/nodes/test_table_alias.rb | 7 ------- 1 file changed, 7 deletions(-) (limited to 'test/nodes/test_table_alias.rb') 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) -- cgit v1.2.3