aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2006-10-06 17:25:10 +0000
committerJamis Buck <jamis@37signals.com>2006-10-06 17:25:10 +0000
commit6c0609fafb387f2f61ba9eb9754c31bdebeb46ec (patch)
treeda831a059fcba0d286e2b06c958cc127cdd19781 /activeresource/test
parent54e86cccd5c69322eb1df7a38e19baaadf8733d4 (diff)
downloadrails-6c0609fafb387f2f61ba9eb9754c31bdebeb46ec.tar.gz
rails-6c0609fafb387f2f61ba9eb9754c31bdebeb46ec.tar.bz2
rails-6c0609fafb387f2f61ba9eb9754c31bdebeb46ec.zip
Add Base.delete for deleting resources without having to instantiate them first
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5229 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activeresource/test')
-rw-r--r--activeresource/test/base_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activeresource/test/base_test.rb b/activeresource/test/base_test.rb
index dd017b71fa..685f9aa994 100644
--- a/activeresource/test/base_test.rb
+++ b/activeresource/test/base_test.rb
@@ -167,4 +167,8 @@ class BaseTest < Test::Unit::TestCase
end
assert_raises(ActiveResource::ResourceNotFound) { StreetAddress.find(1, :person_id => 1).destroy }
end
+
+ def test_delete
+ assert Person.delete(1)
+ end
end