super
Settings.id_key = create(:client_application).key
- Settings.potlatch2_key = create(:client_application).key
end
##
# clear oauth keys
def teardown
Settings.id_key = nil
- Settings.potlatch2_key = nil
end
##
get edit_path
assert_response :redirect
- assert_redirected_to :controller => :users, :action => :login, :referer => "/edit"
+ assert_redirected_to login_path(:referer => "/edit")
end
# Test the error when trying to edit without public edits
def test_welcome
get welcome_path
assert_response :redirect
- assert_redirected_to :controller => :users, :action => :login, :referer => "/welcome"
+ assert_redirected_to login_path(:referer => "/welcome")
session_for(create(:user))
get welcome_path