Skip to content

Commit

Permalink
Add waterbodies admin request test
Browse files Browse the repository at this point in the history
  • Loading branch information
rnestler committed Feb 5, 2023
1 parent cd9572d commit 5920fe2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/controllers/admin/waterbodies_controller_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
require 'test_helper'

class WaterbodiesControllerTest < ActionDispatch::IntegrationTest
setup do
@headers = admin_auth_header
end

test 'should get unauthorized without authentication' do
get admin_waterbodies_url
assert_response :unauthorized
end

test 'should get success with authentication' do
get admin_waterbodies_url, headers: @headers
assert_response :success
end
end

0 comments on commit 5920fe2

Please sign in to comment.