diff options
Diffstat (limited to 'spec/relations/selection_relation_spec.rb')
-rw-r--r-- | spec/relations/selection_relation_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/relations/selection_relation_spec.rb b/spec/relations/selection_relation_spec.rb index 1a7f9e6659..395a3f7693 100644 --- a/spec/relations/selection_relation_spec.rb +++ b/spec/relations/selection_relation_spec.rb @@ -26,6 +26,13 @@ describe SelectionRelation do end end + describe '#qualify' do + it "manufactures a selection relation with qualified predicates and qualified relation" do + SelectionRelation.new(@relation1, @predicate1).qualify. \ + should == SelectionRelation.new(@relation1.qualify, @predicate1.qualify) + end + end + describe '#to_sql' do it "manufactures sql with where clause conditions" do SelectionRelation.new(@relation1, @predicate1).to_sql.to_s.should == SelectBuilder.new do |