Project

General

Profile

« Previous | Next » 

Revision b1b151d8

Added by Joseph Magen over 11 years ago

  • ID b1b151d83f2fb6c37e039d2662a7fc7587f13555

fixes #2166 - error when clearing location

View differences:

test/functional/locations_controller_test.rb
assert_equal new_location.organization_ids, location.organization_ids
end
test "should clear out Location.current" do
@request.env['HTTP_REFERER'] = root_url
get :clear, {}, set_session_user
assert_equal Location.current, nil
assert_equal session[:location_id], nil
assert_redirected_to root_url
end
end

Also available in: Unified diff