basic_authorization private_user.email, "test"
# setup a simple XML node
basic_authorization private_user.email, "test"
# setup a simple XML node
def check_not_found_id_version(id, version)
get :version, :params => { :id => id, :version => version }
assert_response :not_found
def check_not_found_id_version(id, version)
get :version, :params => { :id => id, :version => version }
assert_response :not_found
- rescue ActionController::UrlGenerationError => ex
- assert_match(/No route matches/, ex.to_s)
+ rescue ActionController::UrlGenerationError => e
+ assert_match(/No route matches/, e.to_s)