diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb index 5f65f419b..542228044 100644 --- a/test/functional/auth_sources_controller_test.rb +++ b/test/functional/auth_sources_controller_test.rb @@ -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)