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
|
setup do
|
||||||
@auth_source = AuthSource.generate!(:name => 'TestEdit')
|
@auth_source = AuthSource.generate!(:name => 'TestEdit')
|
||||||
end
|
end
|
||||||
|
|
||||||
context "without users" do
|
context "without users" do
|
||||||
setup do
|
setup do
|
||||||
post :destroy, :id => @auth_source.id
|
post :destroy, :id => @auth_source.id
|
||||||
|
@ -79,13 +79,13 @@ class AuthSourcesControllerTest < ActionController::TestCase
|
||||||
should_redirect_to("index") {{:action => 'index'}}
|
should_redirect_to("index") {{:action => 'index'}}
|
||||||
should_set_the_flash_to /deletion/i
|
should_set_the_flash_to /deletion/i
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with users" do
|
context "with users" do
|
||||||
setup do
|
setup do
|
||||||
User.generate!(:auth_source => @auth_source)
|
User.generate!(:auth_source => @auth_source)
|
||||||
post :destroy, :id => @auth_source.id
|
post :destroy, :id => @auth_source.id
|
||||||
end
|
end
|
||||||
|
|
||||||
should_respond_with :redirect
|
should_respond_with :redirect
|
||||||
should "not destroy the AuthSource" do
|
should "not destroy the AuthSource" do
|
||||||
assert AuthSource.find(@auth_source.id)
|
assert AuthSource.find(@auth_source.id)
|
||||||
|
|
Loading…
Reference in New Issue