aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation
diff options
context:
space:
mode:
Diffstat (limited to 'spec/active_relation')
-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