session_for(user)
get account_terms_path
- assert_redirected_to edit_account_path
+ assert_redirected_to account_path
end
def test_show_not_seen_without_referer
session_for(user)
put account_terms_path, :params => { :read_ct => 1, :read_tou => 1 }
- assert_redirected_to edit_account_path
+ assert_redirected_to account_path
assert_equal "Thanks for accepting the new contributor terms!", flash[:notice]
user.reload
user = create(:user, :terms_seen => false, :terms_agreed => nil)
session_for(user)
- get edit_account_path
- assert_redirected_to account_terms_path(:referer => "/account/edit")
+ get account_path
+ assert_redirected_to account_terms_path(:referer => account_path)
end
end
end