From ad50e772d32c261e4463d67d5c50a25b21a36370 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Fri, 11 Apr 2008 14:56:59 -0700 Subject: removed spurious calls to bind --- spec/active_relation/unit/predicates/in_spec.rb | 6 +++--- spec/active_relation/unit/session/session_spec.rb | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'spec') 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 -- cgit v1.2.3