Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> resource-restful : Added a note to s/404/422/ in test_update_noparams.
  • From: Martin Vidner <mvidner@xxxxxxx>
  • Date: Tue, 15 Sep 2009 14:32:01 +0200
  • Message-id: <E1Mq44F-00086B-8Z@xxxxxxxxxxxxxxxx>
ref: refs/heads/resource-restful
commit 95f714b375f3dadfb35060427a0280c8a9f04bc6
Author: Martin Vidner <mvidner@xxxxxxx>
Date: Tue Sep 15 13:13:48 2009 +0200

Added a note to s/404/422/ in test_update_noparams.
---
webservice/test/plugin_basic_tests.rb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/webservice/test/plugin_basic_tests.rb
b/webservice/test/plugin_basic_tests.rb
index f77ffb7..11907cd 100644
--- a/webservice/test/plugin_basic_tests.rb
+++ b/webservice/test/plugin_basic_tests.rb
@@ -66,6 +66,8 @@ module PluginBasicTests
def test_update_noparams
@model_class.stubs(:save)
put :update
+ # FIXME: it is not 404, but 422 unprocessable entity,
+ # see "Validation errors" in
http://api.rubyonrails.org/classes/ActiveResource/Base.html
assert_response :missing
end

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages