Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <web-client> master : This exception (internal service error) will be handled by the application controller now. So an error page (with bugzilla,...) will be shown instead
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Wed, 16 Sep 2009 16:40:23 +0200
  • Message-id: <E1MnvgO-0003Ro-VE@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 1e1235d5d24859aa2d3793efdc0d70b8ac5e763b
Author: Stefan Schubert <schubi@xxxxxxx>
Date: Wed Sep 16 16:40:23 2009 +0200

This exception (internal service error) will be handled by the application
controller now. So an error page (with bugzilla,...) will be shown instead
---
.../test/functional/sessions_controller_test.rb | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/webclient/test/functional/sessions_controller_test.rb
b/webclient/test/functional/sessions_controller_test.rb
index bc15583..7d44527 100644
--- a/webclient/test/functional/sessions_controller_test.rb
+++ b/webclient/test/functional/sessions_controller_test.rb
@@ -25,7 +25,6 @@ class SessionsControllerTest < ActionController::TestCase
auth_token = "abcdef"

Account.stubs(:authenticate).with("quentin","test",@host.url).returns([current_account,
auth_token])
Account.stubs(:authenticate).with("quentin","bad
password",@host.url).returns([nil,nil])
-
Account.stubs(:authenticate).with("quentin","exception",@host.url).raises(RuntimeError)
Account.stubs(:authenticate).with("quentin","bad
host",@host.url).raises(Errno::ECONNREFUSED)
YaST::ServiceResource::Session.site = @host.url
ActiveResource::Base.site = @host.url
@@ -94,15 +93,6 @@ class SessionsControllerTest < ActionController::TestCase
# we should be at the hosts list againn
assert_redirected_to :controller => :hosts, :hostid => @host.id, :error =>
"econnrefused"
end
-
- def test_create_with_exception_raised
- post :create, :login => 'quentin', :password => 'exception', :hostid =>
@host.id
- assert_nil flash[:warning]
- assert flash[:error]
- # we should be at the login form again
- assert_redirected_to :controller => :sessions, :action => :new, :hostid =>
@host.id
- end
-

def test_should_logout
ActiveResource::HttpMock.respond_to do |mock|
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages