aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-11 13:55:17 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-11 13:55:17 -0700
commit8887dcce12cd80f673e28537800e7657be9969d8 (patch)
tree6d8c6225c23f8a303791ff5546fc963c00818da7 /spec
parente6f6fbc5c7bd12ac0c122cdfdfc448329919e603 (diff)
downloadrails-8887dcce12cd80f673e28537800e7657be9969d8.tar.gz
rails-8887dcce12cd80f673e28537800e7657be9969d8.tar.bz2
rails-8887dcce12cd80f673e28537800e7657be9969d8.zip
removed bind for insertion and updation
Diffstat (limited to 'spec')
-rw-r--r--spec/active_relation/unit/relations/insertion_spec.rb8
-rw-r--r--spec/active_relation/unit/relations/relation_spec.rb4
-rw-r--r--spec/active_relation/unit/relations/update_spec.rb8
3 files changed, 10 insertions, 10 deletions
diff --git a/spec/active_relation/unit/relations/insertion_spec.rb b/spec/active_relation/unit/relations/insertion_spec.rb
index b74ec6c7cb..e01e7792e2 100644
--- a/spec/active_relation/unit/relations/insertion_spec.rb
+++ b/spec/active_relation/unit/relations/insertion_spec.rb
@@ -9,7 +9,7 @@ module ActiveRelation
describe '#to_sql' do
describe 'when given values whose types correspond to the types of the attributes' do
before do
- @insertion = Insertion.new(@relation, @relation[:name] => "nick".bind(@relation))
+ @insertion = Insertion.new(@relation, @relation[:name] => "nick")
end
it 'manufactures sql inserting data' do
@@ -23,7 +23,7 @@ module ActiveRelation
describe 'when given values whose types differ from from the types of the attributes' do
before do
- @insertion = Insertion.new(@relation, @relation[:id] => '1-asdf'.bind(@relation))
+ @insertion = Insertion.new(@relation, @relation[:id] => '1-asdf')
end
it 'manufactures sql inserting data' do
@@ -37,7 +37,7 @@ module ActiveRelation
describe 'when given values whose types correspond to the type of the attribtues' do
before do
- @insertion = Insertion.new(@relation, @relation[:name] => "nick".bind(@relation))
+ @insertion = Insertion.new(@relation, @relation[:name] => "nick")
end
it 'manufactures sql inserting data' do
@@ -52,7 +52,7 @@ module ActiveRelation
describe '#call' do
before do
- @insertion = Insertion.new(@relation, @relation[:name] => "nick".bind(@relation))
+ @insertion = Insertion.new(@relation, @relation[:name] => "nick")
end
it 'executes an insert on the connection' do
diff --git a/spec/active_relation/unit/relations/relation_spec.rb b/spec/active_relation/unit/relations/relation_spec.rb
index 7bb85d7270..682ec88f10 100644
--- a/spec/active_relation/unit/relations/relation_spec.rb
+++ b/spec/active_relation/unit/relations/relation_spec.rb
@@ -138,7 +138,7 @@ module ActiveRelation
it 'manufactures an insertion relation' do
Session.start do
record = {@relation[:name] => 'carl'}
- mock(Session.new).create(Insertion.new(@relation, record.bind(@relation)))
+ mock(Session.new).create(Insertion.new(@relation, record))
@relation.insert(record).should == @relation
end
end
@@ -148,7 +148,7 @@ module ActiveRelation
it 'manufactures an update relation' do
Session.start do
assignments = {@relation[:name] => Value.new('bob', @relation)}
- mock(Session.new).update(Update.new(@relation, assignments.bind(@relation)))
+ mock(Session.new).update(Update.new(@relation, assignments))
@relation.update(assignments).should == @relation
end
end
diff --git a/spec/active_relation/unit/relations/update_spec.rb b/spec/active_relation/unit/relations/update_spec.rb
index 9053f292d6..5c234fe759 100644
--- a/spec/active_relation/unit/relations/update_spec.rb
+++ b/spec/active_relation/unit/relations/update_spec.rb
@@ -9,7 +9,7 @@ module ActiveRelation
describe '#to_sql' do
describe 'when given values whose types correspond to the types of the attributes' do
before do
- @update = Update.new(@relation, @relation[:name] => "nick".bind(@relation))
+ @update = Update.new(@relation, @relation[:name] => "nick")
end
it 'manufactures sql updating attributes' do
@@ -22,7 +22,7 @@ module ActiveRelation
describe 'when given values whose types differ from from the types of the attributes' do
before do
- @update = Update.new(@relation, @relation[:id] => '1-asdf'.bind(@relation))
+ @update = Update.new(@relation, @relation[:id] => '1-asdf')
end
it 'manufactures sql updating attributes' do
@@ -37,7 +37,7 @@ module ActiveRelation
before do
@update = Update.new(
@relation.select(@relation[:id].eq(1)),
- @relation[:name] => "nick".bind(@relation)
+ @relation[:name] => "nick"
)
end
@@ -53,7 +53,7 @@ module ActiveRelation
describe '#call' do
before do
- @update = Update.new(@relation, @relation[:name] => "nick".bind(@relation))
+ @update = Update.new(@relation, @relation[:name] => "nick")
end
it 'executes an update on the connection' do