pundit: convert users to pundit.
This commit is contained in:
19
test/functional/user_upgrades_controller_test.rb
Normal file
19
test/functional/user_upgrades_controller_test.rb
Normal 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
|
||||
Reference in New Issue
Block a user