diff options
Diffstat (limited to 'spec/relations/join_operation_spec.rb')
-rw-r--r-- | spec/relations/join_operation_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/relations/join_operation_spec.rb b/spec/relations/join_operation_spec.rb index 13e50e057e..d75d2d5c93 100644 --- a/spec/relations/join_operation_spec.rb +++ b/spec/relations/join_operation_spec.rb @@ -20,10 +20,16 @@ describe JoinOperation, 'between two relations' do describe JoinOperation, 'on' do before do @predicate = Predicate.new + @join_operation = JoinOperation.new(@relation1, @relation2) + class << @join_operation + def relation_class + JoinRelation + end + end end - it "manufactures a JoinRelation" do - JoinOperation.new(@relation1, @relation2).on(@predicate).should == JoinRelation.new(@relation1, @relation2, @predicate) + it "manufactures a join relation of the appropriate type" do + @join_operation.on(@predicate).should == JoinRelation.new(@relation1, @relation2, @predicate) end end end
\ No newline at end of file |