Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] <rest-service> master : Test more corner cases, 95% coverage now
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Tue, 7 Jul 2009 16:19:06 +0200
  • Message-id: <E1MOBVk-0002nh-BO@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit aa9fe3e08a935bb193262091ab800da4c5521a48
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Tue Jul 7 16:19:06 2009 +0200

Test more corner cases, 95% coverage now
---
.../test/functional/permissions_controller_test.rb | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/webservice/test/functional/permissions_controller_test.rb
b/webservice/test/functional/permissions_controller_test.rb
index 58de311..0b1aca0 100644
--- a/webservice/test/functional/permissions_controller_test.rb
+++ b/webservice/test/functional/permissions_controller_test.rb
@@ -69,6 +69,11 @@ class PermissionsControllerTest < ActionController::TestCase
assert_response :success
end

+ test "permissions access show blank id" do
+ get :show, :user_id => "test_user"
+ assert_response 404
+ end
+
test "permissions access show json" do
mime = Mime::JSON
@request.accept = mime.to_s
@@ -107,6 +112,11 @@ class PermissionsControllerTest <
ActionController::TestCase
assert_response :success
end

+ test "permissions setting blank" do
+ put :update, :id=>"test_user"
+ assert_response 404
+ end
+
test " setting permissions without permissions" do
save = ENV['RAILS_ENV']
ENV['RAILS_ENV'] = "production"
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages