tests: add missing controller tests.

This commit is contained in:
evazion
2020-03-30 12:36:06 -05:00
parent 83c2abf1ae
commit 4e2fd82ef6
19 changed files with 227 additions and 14 deletions

View File

@@ -40,5 +40,17 @@ class IpAddressesControllerTest < ActionDispatch::IntegrationTest
assert_response 403
end
end
context "show action" do
should "be visible to mods" do
get_auth ip_address_path("1.1.1.1"), @mod
assert_response :success
end
should "not be visible to members" do
get_auth ip_address_path("1.1.1.1"), @user
assert_response 403
end
end
end
end