aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-13 19:55:07 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-13 19:55:07 -0700
commit722623dab397427df7a99b7aeefe4356cadcce25 (patch)
tree99cfc7c48d1a032bd36d2baa06ebd8a5c04d223d /spec
parent7a93ce0b1e8560ef5bad7cb7f7a170507bfde16d (diff)
downloadrails-722623dab397427df7a99b7aeefe4356cadcce25.tar.gz
rails-722623dab397427df7a99b7aeefe4356cadcce25.tar.bz2
rails-722623dab397427df7a99b7aeefe4356cadcce25.zip
adding limit options to update and destroy
Diffstat (limited to 'spec')
-rw-r--r--spec/active_relation/unit/relations/deletion_spec.rb12
-rw-r--r--spec/active_relation/unit/relations/update_spec.rb12
2 files changed, 10 insertions, 14 deletions
diff --git a/spec/active_relation/unit/relations/deletion_spec.rb b/spec/active_relation/unit/relations/deletion_spec.rb
index 46a962cb5c..08f7bc03bb 100644
--- a/spec/active_relation/unit/relations/deletion_spec.rb
+++ b/spec/active_relation/unit/relations/deletion_spec.rb
@@ -23,13 +23,11 @@ module ActiveRelation
end
it "manufactures sql deleting a ranged relation" do
- pending do
- Deletion.new(@relation.take(1)).to_sql.should be_like("
- DELETE
- FROM `users`
- LIMIT 1
- ")
- end
+ Deletion.new(@relation.take(1)).to_sql.should be_like("
+ DELETE
+ FROM `users`
+ LIMIT 1
+ ")
end
end
diff --git a/spec/active_relation/unit/relations/update_spec.rb b/spec/active_relation/unit/relations/update_spec.rb
index 969b17436f..24beb315e5 100644
--- a/spec/active_relation/unit/relations/update_spec.rb
+++ b/spec/active_relation/unit/relations/update_spec.rb
@@ -15,13 +15,11 @@ module ActiveRelation
end
it "manufactures sql updating attributes when given a ranged relation" do
- pending do
- Update.new(@relation.take(1), @relation[:name] => "nick").to_sql.should be_like("
- UPDATE `users`
- SET `users`.`name` = 'nick'
- LIMIT 1
- ")
- end
+ Update.new(@relation.take(1), @relation[:name] => "nick").to_sql.should be_like("
+ UPDATE `users`
+ SET `users`.`name` = 'nick'
+ LIMIT 1
+ ")
end
describe 'when given values whose types correspond to the types of the attributes' do