Please sign in to comment.
Eventually #engine should go away, but until that time, this means that Table and Nodes::TableAlias can be used more interchangeably.
- Loading branch information...
Showing with 20 additions and 0 deletions.
|@@ -0,0 +1,16 @@|
|+ module Nodes|
|+ describe 'table alias' do|
|+ it 'has an #engine which delegates to the relation' do|
|+ engine = Object.new|
|+ relation = OpenStruct.new(:engine => engine)|
|+ node = TableAlias.new relation, :foo|
|+ node.engine.must_equal engine|