aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-11 14:56:59 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-11 14:56:59 -0700
commitad50e772d32c261e4463d67d5c50a25b21a36370 (patch)
tree660fb518879c7de4e6d45914017919d4a762b5fb
parent89eff9708d9519f8a2724427d9ed9a3bcbc6d125 (diff)
downloadrails-ad50e772d32c261e4463d67d5c50a25b21a36370.tar.gz
rails-ad50e772d32c261e4463d67d5c50a25b21a36370.tar.bz2
rails-ad50e772d32c261e4463d67d5c50a25b21a36370.zip
removed spurious calls to bind
-rw-r--r--spec/active_relation/unit/predicates/in_spec.rb6
-rw-r--r--spec/active_relation/unit/session/session_spec.rb4
2 files changed, 5 insertions, 5 deletions
diff --git a/spec/active_relation/unit/predicates/in_spec.rb b/spec/active_relation/unit/predicates/in_spec.rb
index 9e60c29ce0..4ca7867dd0 100644
--- a/spec/active_relation/unit/predicates/in_spec.rb
+++ b/spec/active_relation/unit/predicates/in_spec.rb
@@ -11,7 +11,7 @@ module ActiveRelation
describe 'when relating to an array' do
describe 'when the array\'s elements are the same type as the attribute' do
before do
- @array = [1, 2, 3].bind(@relation)
+ @array = [1, 2, 3]
end
it 'manufactures sql with a comma separated list' do
@@ -23,7 +23,7 @@ module ActiveRelation
describe 'when the array\'s elements are not same type as the attribute' do
before do
- @array = ['1-asdf', 2, 3].bind(@relation)
+ @array = ['1-asdf', 2, 3]
end
it 'formats values in the array as the type of the attribute' do
@@ -36,7 +36,7 @@ module ActiveRelation
describe 'when relating to a range' do
before do
- @range = (1..2).bind(@relation)
+ @range = 1..2
end
it 'manufactures sql with a between' do
diff --git a/spec/active_relation/unit/session/session_spec.rb b/spec/active_relation/unit/session/session_spec.rb
index 9fba6cc6b2..5c3b668e1f 100644
--- a/spec/active_relation/unit/session/session_spec.rb
+++ b/spec/active_relation/unit/session/session_spec.rb
@@ -32,8 +32,8 @@ module ActiveRelation
describe Session::CRUD do
before do
- @insert = Insertion.new(@relation, @relation[:name] => 'nick'.bind(@relation))
- @update = Update.new(@relation, @relation[:name] => 'nick'.bind(@relation))
+ @insert = Insertion.new(@relation, @relation[:name] => 'nick')
+ @update = Update.new(@relation, @relation[:name] => 'nick')
@delete = Deletion.new(@relation)
@read = @relation
end