X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6df7fdbb9eb563f8ccf68f24c3d210b27c93cd83..94cf6ece2dc27909f2d01af099a3960e75ed6da5:/test/functional/browse_controller_test.rb?ds=sidebyside diff --git a/test/functional/browse_controller_test.rb b/test/functional/browse_controller_test.rb index 81dbede57..65e851011 100644 --- a/test/functional/browse_controller_test.rb +++ b/test/functional/browse_controller_test.rb @@ -1,19 +1,8 @@ require File.dirname(__FILE__) + '/../test_helper' require 'browse_controller' -# Re-raise errors caught by the controller. -class BrowseController; def rescue_action(e) raise e end; end - - class BrowseControllerTest < Test::Unit::TestCase +class BrowseControllerTest < ActionController::TestCase api_fixtures - - - - def setup - @controller = BrowseController.new - @request = ActionController::TestRequest.new - @response = ActionController::TestResponse.new - end def basic_authorization(user, pass) @request.env["HTTP_AUTHORIZATION"] = "Basic %s" % Base64.encode64("#{user}:#{pass}")