Commit b1a5f5ed30968985540a9160328702263f1dbd5b

Authored by AntonioTerceiro
1 parent f426c304

ActionItem280: back with all tests passing


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1690 3f533792-8f58-4932-b0fe-aaf55b0a4547
test/integration/login_to_the_application_test.rb
@@ -6,14 +6,14 @@ class LoginToTheApplicationTest < ActionController::IntegrationTest @@ -6,14 +6,14 @@ class LoginToTheApplicationTest < ActionController::IntegrationTest
6 def test_anonymous_user_logins_to_application 6 def test_anonymous_user_logins_to_application
7 get '/' 7 get '/'
8 assert_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } 8 assert_tag :tag => 'a', :attributes => { :href => '/account/login_popup' }
9 - assert_no_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } 9 + assert_no_tag :tag => 'a', :attributes => { :href => '/account/logout' }
10 10
11 get '/account/login_popup' 11 get '/account/login_popup'
12 assert_response :success 12 assert_response :success
13 13
14 login('ze', 'test') 14 login('ze', 'test')
15 assert_no_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } 15 assert_no_tag :tag => 'a', :attributes => { :href => '/account/login_popup' }
16 - assert_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } 16 + assert_tag :tag => 'a', :attributes => { :href => '/account/logout' }
17 17
18 end 18 end
19 19
test/integration/user_registers_at_the_application_test.rb
@@ -20,7 +20,7 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest @@ -20,7 +20,7 @@ class UserRegistersAtTheApplicationTest < ActionController::IntegrationTest
20 # user is logged in right after the registration 20 # user is logged in right after the registration
21 follow_redirect! 21 follow_redirect!
22 assert_no_tag :tag => 'a', :attributes => { :href => '/account/login_popup' } 22 assert_no_tag :tag => 'a', :attributes => { :href => '/account/login_popup' }
23 - assert_tag :tag => 'a', :attributes => { :href => '/account/logout_popup' } 23 + assert_tag :tag => 'a', :attributes => { :href => '/account/logout' }
24 end 24 end
25 25
26 def test_trying_an_existing_login_name 26 def test_trying_an_existing_login_name