diff options
Diffstat (limited to 'spec/relations/projection_relation_spec.rb')
-rw-r--r-- | spec/relations/projection_relation_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/relations/projection_relation_spec.rb b/spec/relations/projection_relation_spec.rb index 47386f966d..eb74b5cedf 100644 --- a/spec/relations/projection_relation_spec.rb +++ b/spec/relations/projection_relation_spec.rb @@ -16,6 +16,13 @@ describe ProjectionRelation do end end + describe '#qualify' do + it "manufactures a projection relation with qualified attributes and qualified relation" do + ProjectionRelation.new(@relation1, @attribute1).qualify. \ + should == ProjectionRelation.new(@relation1.qualify, @attribute1.qualify) + end + end + describe '#to_sql' do it "manufactures sql with a limited select clause" do ProjectionRelation.new(@relation1, @attribute1).to_sql.to_s.should == SelectBuilder.new do |