Commit 3380d62d7d56f4dab20a2eb9bb7bac73f3da3c5e
1 parent
4d88ce2d
Exists in
master
and in
29 other branches
ActionItem152: adjusting integration tests looking for old-style login/logour URL's
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1226 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
2 changed files
with
11 additions
and
11 deletions
Show diff stats
test/integration/login_to_the_application_test.rb
... | ... | @@ -5,15 +5,15 @@ class LoginToTheApplicationTest < ActionController::IntegrationTest |
5 | 5 | |
6 | 6 | def test_anonymous_user_logins_to_application |
7 | 7 | get '/' |
8 | - assert_tag :tag => 'a', :attributes => { :href => '/account/login' } | |
9 | - assert_no_tag :tag => 'a', :attributes => { :href => '/account/logout' } | |
8 | + assert_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } | |
9 | + assert_no_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } | |
10 | 10 | |
11 | - get '/account/login' | |
11 | + get '/account/login_popup' | |
12 | 12 | assert_response :success |
13 | 13 | |
14 | 14 | login('ze', 'test') |
15 | - assert_no_tag :tag => 'a', :attributes => { :href => '/account/login' } | |
16 | - assert_tag :tag => 'a', :attributes => { :href => '/account/logout' } | |
15 | + assert_no_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } | |
16 | + assert_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } | |
17 | 17 | |
18 | 18 | end |
19 | 19 | ... | ... |
test/integration/user_registers_at_the_application_test.rb
... | ... | @@ -5,9 +5,9 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest |
5 | 5 | |
6 | 6 | def test_successfull_registration |
7 | 7 | get '/' |
8 | - assert_tag :tag => 'a', :attributes => { :href => '/account/login' } | |
8 | + assert_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } | |
9 | 9 | |
10 | - get '/account/login' | |
10 | + get '/account/login_popup' | |
11 | 11 | assert_tag :tag => 'a', :attributes => { :href => '/account/signup'} |
12 | 12 | |
13 | 13 | get '/account/signup' |
... | ... | @@ -19,8 +19,8 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest |
19 | 19 | |
20 | 20 | # user is logged in right after the registration |
21 | 21 | follow_redirect! |
22 | - assert_no_tag :tag => 'a', :attributes => { :href => '/account/login' } | |
23 | - assert_tag :tag => 'a', :attributes => { :href => '/account/logout' } | |
22 | + assert_no_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } | |
23 | + assert_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } | |
24 | 24 | end |
25 | 25 | |
26 | 26 | def test_trying_an_existing_login_name |
... | ... | @@ -28,9 +28,9 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest |
28 | 28 | assert User.find_by_login('ze') # just to make sure that 'ze' already exists |
29 | 29 | |
30 | 30 | get '/' |
31 | - assert_tag :tag => 'a', :attributes => { :href => '/account/login'} | |
31 | + assert_tag :tag => 'a', :attributes => { :href => '/account/login_popup'} | |
32 | 32 | |
33 | - get '/account/login' | |
33 | + get '/account/login_popup' | |
34 | 34 | assert_tag :tag => 'a', :attributes => { :href => '/account/signup'} |
35 | 35 | |
36 | 36 | get '/account/signup' | ... | ... |