aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation/unit/relations/selection_spec.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-02 17:05:06 -0800
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-02 17:05:06 -0800
commit86550ef2bee377a5e4134dc63dedb138bb9ab7dc (patch)
tree50726fc4904437eeb83ab7ad999ced774e253f71 /spec/active_relation/unit/relations/selection_spec.rb
parent92db013ba3ee4d0a9d92281e614d05f064c22e15 (diff)
downloadrails-86550ef2bee377a5e4134dc63dedb138bb9ab7dc.tar.gz
rails-86550ef2bee377a5e4134dc63dedb138bb9ab7dc.tar.bz2
rails-86550ef2bee377a5e4134dc63dedb138bb9ab7dc.zip
new concept of session boundaries
Diffstat (limited to 'spec/active_relation/unit/relations/selection_spec.rb')
-rw-r--r--spec/active_relation/unit/relations/selection_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/active_relation/unit/relations/selection_spec.rb b/spec/active_relation/unit/relations/selection_spec.rb
index afe002186e..3a18d4ae6e 100644
--- a/spec/active_relation/unit/relations/selection_spec.rb
+++ b/spec/active_relation/unit/relations/selection_spec.rb
@@ -31,19 +31,19 @@ module ActiveRelation
describe '#to_sql' do
it "manufactures sql with where clause conditions" do
- Selection.new(@relation, @predicate).to_sql.should be_like("""
+ Selection.new(@relation, @predicate).to_sql.should be_like("
SELECT `users`.`id`, `users`.`name`
FROM `users`
WHERE `users`.`id` = 1
- """)
+ ")
end
it "allows arbitrary sql" do
- Selection.new(@relation, "asdf").to_sql.should be_like("""
+ Selection.new(@relation, "asdf").to_sql.should be_like("
SELECT `users`.`id`, `users`.`name`
FROM `users`
WHERE asdf
- """)
+ ")
end
end
end