mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Add back good job dashboard with auth (#1364)
This commit is contained in:
parent
ba49fea89a
commit
b611dfdf37
4 changed files with 29 additions and 0 deletions
|
@ -31,4 +31,15 @@ class SessionsControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_redirected_to new_session_path
|
||||
assert_equal "You have signed out successfully.", flash[:notice]
|
||||
end
|
||||
|
||||
test "super admins can access the jobs page" do
|
||||
sign_in users(:maybe_support_staff)
|
||||
get good_job_url
|
||||
assert_redirected_to "http://www.example.com/good_job/jobs?locale=en"
|
||||
end
|
||||
|
||||
test "non-super admins cannot access the jobs page" do
|
||||
get good_job_url
|
||||
assert_response :not_found
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue