diff --git a/test/integration/login_to_the_application_test.rb b/test/integration/login_to_the_application_test.rb index b1bc04f..3685b9c 100644 --- a/test/integration/login_to_the_application_test.rb +++ b/test/integration/login_to_the_application_test.rb @@ -3,22 +3,6 @@ require "#{File.dirname(__FILE__)}/../test_helper" class LoginToTheApplicationTest < ActionController::IntegrationTest fixtures :users, :environments, :profiles - def test_anonymous_user_logins_to_application - get '/' - - assert_can_login - assert_cannot_logout - - get '/account/login_popup' - assert_response :success - - create_user('test_user').person - login('test_user', 'test_user') - assert_cannot_login - assert_can_logout - - end - def test_unauthenticated_user_tries_to_access_his_control_panel Environment.any_instance.stubs(:enable_ssl).returns(false) # ignore SSL for this test diff --git a/test/test_helper.rb b/test/test_helper.rb index b16b4b1..4760258 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -224,18 +224,6 @@ class ActionController::IntegrationTest assert_tag :tag => 'a', :attributes => { :href => '/account/signup'} end - def assert_cannot_logout - assert_no_tag :tag => 'a', :attributes => { :href => '/account/logout' } - end - - def assert_cannot_login - assert_no_tag :tag => 'a', :attributes => { :id => 'link_login' } - end - - def assert_can_logout - assert_tag :tag => 'a', :attributes => { :href => '/account/logout' } - end - def login(username, password) ActionController::Integration::Session.any_instance.stubs(:https?).returns(true) -- libgit2 0.21.2