pundit: convert users to pundit.

This commit is contained in:
evazion
2020-03-16 00:18:50 -05:00
parent a0c4617057
commit 5c6d26ea24
9 changed files with 88 additions and 59 deletions

View File

@@ -0,0 +1,19 @@
require 'test_helper'
class UserUpgradesControllerTest < ActionDispatch::IntegrationTest
context "The user upgrades controller" do
context "new action" do
should "render" do
get new_user_upgrade_path
assert_response :success
end
end
context "show action" do
should "render" do
get_auth user_upgrade_path, create(:user)
assert_response :success
end
end
end
end