remove trailing white-spaces from test/functional/auth_sources_controller_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6578 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
3b6cd02f1e
commit
274a04ba21
@ -69,7 +69,7 @@ class AuthSourcesControllerTest < ActionController::TestCase
|
||||
setup do
|
||||
@auth_source = AuthSource.generate!(:name => 'TestEdit')
|
||||
end
|
||||
|
||||
|
||||
context "without users" do
|
||||
setup do
|
||||
post :destroy, :id => @auth_source.id
|
||||
@ -79,13 +79,13 @@ class AuthSourcesControllerTest < ActionController::TestCase
|
||||
should_redirect_to("index") {{:action => 'index'}}
|
||||
should_set_the_flash_to /deletion/i
|
||||
end
|
||||
|
||||
|
||||
context "with users" do
|
||||
setup do
|
||||
User.generate!(:auth_source => @auth_source)
|
||||
post :destroy, :id => @auth_source.id
|
||||
end
|
||||
|
||||
|
||||
should_respond_with :redirect
|
||||
should "not destroy the AuthSource" do
|
||||
assert AuthSource.find(@auth_source.id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user