Commit c79fa28f04d247ff574708f9e2826bc1e0b08ecb
1 parent
2e4bcc15
Exists in
staging
and in
42 other branches
ActionItem93: updating integration test
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1035 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
10 additions
and
5 deletions
Show diff stats
test/integration/user_registers_at_the_application_test.rb
... | ... | @@ -5,7 +5,10 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest |
5 | 5 | |
6 | 6 | def test_successfull_registration |
7 | 7 | get '/' |
8 | - assert_tag :tag => 'span', :attributes => { :id => 'register_box' } | |
8 | + assert_tag :tag => 'a', :attributes => { :href => '/account/login' } | |
9 | + | |
10 | + get '/account/login' | |
11 | + assert_tag :tag => 'a', :attributes => { :href => '/account/signup'} | |
9 | 12 | |
10 | 13 | get '/account/signup' |
11 | 14 | assert_response :success |
... | ... | @@ -16,9 +19,8 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest |
16 | 19 | |
17 | 20 | # user is logged in right after the registration |
18 | 21 | follow_redirect! |
19 | - assert_no_tag :tag => 'span', :attributes => { :id => 'login_box' } | |
20 | - assert_tag :tag => 'span', :attributes => { :id => 'user_links' } | |
21 | - assert_tag :tag => 'span', :attributes => { :id => 'logout_box' } | |
22 | + assert_no_tag :tag => 'a', :attributes => { :href => '/account/login' } | |
23 | + assert_tag :tag => 'a', :attributes => { :href => '/account/logout' } | |
22 | 24 | end |
23 | 25 | |
24 | 26 | def test_trying_an_existing_login_name |
... | ... | @@ -26,7 +28,10 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest |
26 | 28 | assert User.find_by_login('ze') # just to make sure that 'ze' already exists |
27 | 29 | |
28 | 30 | get '/' |
29 | - assert_tag :tag => 'span', :attributes => { :id => 'register_box' } | |
31 | + assert_tag :tag => 'a', :attributes => { :href => '/account/login'} | |
32 | + | |
33 | + get '/account/login' | |
34 | + assert_tag :tag => 'a', :attributes => { :href => '/account/signup'} | |
30 | 35 | |
31 | 36 | get '/account/signup' |
32 | 37 | assert_response :success | ... | ... |