aboutsummaryrefslogtreecommitdiffstats
path: root/spec/relations/projection_relation_spec.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-01-01 16:44:33 -0800
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-01-01 16:44:33 -0800
commit6c89e3818d85e3169a7fb8de27b25357c2259881 (patch)
tree2ffe9fbe8765239733a864646ce71f9551736151 /spec/relations/projection_relation_spec.rb
parent0496a59e1fe0caf2d295defb588a00460cf15efb (diff)
downloadrails-6c89e3818d85e3169a7fb8de27b25357c2259881.tar.gz
rails-6c89e3818d85e3169a7fb8de27b25357c2259881.tar.bz2
rails-6c89e3818d85e3169a7fb8de27b25357c2259881.zip
integration test
Diffstat (limited to 'spec/relations/projection_relation_spec.rb')
-rw-r--r--spec/relations/projection_relation_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/relations/projection_relation_spec.rb b/spec/relations/projection_relation_spec.rb
index ba5620dcde..f17f57df7b 100644
--- a/spec/relations/projection_relation_spec.rb
+++ b/spec/relations/projection_relation_spec.rb
@@ -19,7 +19,9 @@ describe ProjectionRelation do
describe '#to_sql' do
it "manufactures sql with a limited select clause" do
ProjectionRelation.new(@relation1, @attribute1).to_sql.should == SelectBuilder.new do
- select 'foo.foo'
+ select do
+ column :foo, :foo
+ end
from :foo
end
end