From 3380d62d7d56f4dab20a2eb9bb7bac73f3da3c5e Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 18 Jan 2008 18:31:35 +0000 Subject: [PATCH] ActionItem152: adjusting integration tests looking for old-style login/logour URL's --- test/integration/login_to_the_application_test.rb | 10 +++++----- test/integration/user_registers_at_the_application_test.rb | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/integration/login_to_the_application_test.rb b/test/integration/login_to_the_application_test.rb index cc043ef..2ea21ad 100644 --- a/test/integration/login_to_the_application_test.rb +++ b/test/integration/login_to_the_application_test.rb @@ -5,15 +5,15 @@ class LoginToTheApplicationTest < ActionController::IntegrationTest def test_anonymous_user_logins_to_application get '/' - assert_tag :tag => 'a', :attributes => { :href => '/account/login' } - assert_no_tag :tag => 'a', :attributes => { :href => '/account/logout' } + assert_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } + assert_no_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } - get '/account/login' + get '/account/login_popup' assert_response :success login('ze', 'test') - assert_no_tag :tag => 'a', :attributes => { :href => '/account/login' } - assert_tag :tag => 'a', :attributes => { :href => '/account/logout' } + assert_no_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } + assert_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } end diff --git a/test/integration/user_registers_at_the_application_test.rb b/test/integration/user_registers_at_the_application_test.rb index 3e8f7ed..24a8ddb 100644 --- a/test/integration/user_registers_at_the_application_test.rb +++ b/test/integration/user_registers_at_the_application_test.rb @@ -5,9 +5,9 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest def test_successfull_registration get '/' - assert_tag :tag => 'a', :attributes => { :href => '/account/login' } + assert_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } - get '/account/login' + get '/account/login_popup' assert_tag :tag => 'a', :attributes => { :href => '/account/signup'} get '/account/signup' @@ -19,8 +19,8 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest # user is logged in right after the registration follow_redirect! - assert_no_tag :tag => 'a', :attributes => { :href => '/account/login' } - assert_tag :tag => 'a', :attributes => { :href => '/account/logout' } + assert_no_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } + assert_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } end def test_trying_an_existing_login_name @@ -28,9 +28,9 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest assert User.find_by_login('ze') # just to make sure that 'ze' already exists get '/' - assert_tag :tag => 'a', :attributes => { :href => '/account/login'} + assert_tag :tag => 'a', :attributes => { :href => '/account/login_popup'} - get '/account/login' + get '/account/login_popup' assert_tag :tag => 'a', :attributes => { :href => '/account/signup'} get '/account/signup' -- libgit2 0.21.2