From 648209d11f16243a9f073b177e6b32ce8c094408 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Sat, 5 Jan 2008 15:38:03 -0800 Subject: minor cleanup --- spec/integration/scratch_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'spec/integration') diff --git a/spec/integration/scratch_spec.rb b/spec/integration/scratch_spec.rb index b19f1a5234..725ac755c0 100644 --- a/spec/integration/scratch_spec.rb +++ b/spec/integration/scratch_spec.rb @@ -11,7 +11,7 @@ describe 'Relational Algebra' do end it 'simulates User.has_many :photos' do - @user_photos.project(*@photos.attributes).to_sql.to_s.should be_like(""" + @user_photos.project(*@photos.attributes).to_s.should be_like(""" SELECT photos.id, photos.user_id, photos.camera_id FROM users LEFT OUTER JOIN photos @@ -22,7 +22,7 @@ describe 'Relational Algebra' do end it 'simulates a User.has_many :cameras :through => :photos' do - @user_cameras.project(*@cameras.attributes).to_sql.to_s.should be_like(""" + @user_cameras.project(*@cameras.attributes).to_s.should be_like(""" SELECT cameras.id FROM users LEFT OUTER JOIN photos @@ -35,6 +35,7 @@ describe 'Relational Algebra' do end it '' do + # @user_cameras.qualify.to_s # # @users.rename() end -- cgit v1.2.3