Commit 13e635a602b444c2b41d3e2a108b724da8087a06
1 parent
a8142d0b
Exists in
master
and in
28 other branches
Removing useless test
That is tested in a lot of other places (ActionItem1608)
Showing
2 changed files
with
0 additions
and
28 deletions
Show diff stats
test/integration/login_to_the_application_test.rb
... | ... | @@ -3,22 +3,6 @@ require "#{File.dirname(__FILE__)}/../test_helper" |
3 | 3 | class LoginToTheApplicationTest < ActionController::IntegrationTest |
4 | 4 | fixtures :users, :environments, :profiles |
5 | 5 | |
6 | - def test_anonymous_user_logins_to_application | |
7 | - get '/' | |
8 | - | |
9 | - assert_can_login | |
10 | - assert_cannot_logout | |
11 | - | |
12 | - get '/account/login_popup' | |
13 | - assert_response :success | |
14 | - | |
15 | - create_user('test_user').person | |
16 | - login('test_user', 'test_user') | |
17 | - assert_cannot_login | |
18 | - assert_can_logout | |
19 | - | |
20 | - end | |
21 | - | |
22 | 6 | def test_unauthenticated_user_tries_to_access_his_control_panel |
23 | 7 | Environment.any_instance.stubs(:enable_ssl).returns(false) # ignore SSL for this test |
24 | 8 | ... | ... |
test/test_helper.rb
... | ... | @@ -224,18 +224,6 @@ class ActionController::IntegrationTest |
224 | 224 | assert_tag :tag => 'a', :attributes => { :href => '/account/signup'} |
225 | 225 | end |
226 | 226 | |
227 | - def assert_cannot_logout | |
228 | - assert_no_tag :tag => 'a', :attributes => { :href => '/account/logout' } | |
229 | - end | |
230 | - | |
231 | - def assert_cannot_login | |
232 | - assert_no_tag :tag => 'a', :attributes => { :id => 'link_login' } | |
233 | - end | |
234 | - | |
235 | - def assert_can_logout | |
236 | - assert_tag :tag => 'a', :attributes => { :href => '/account/logout' } | |
237 | - end | |
238 | - | |
239 | 227 | def login(username, password) |
240 | 228 | ActionController::Integration::Session.any_instance.stubs(:https?).returns(true) |
241 | 229 | ... | ... |