Sha256: 63e46a93936ecadca882bfe3bd56a604fead363101de853a43902a76f07be44e
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 Bytes
Contents
require 'test_helper' class SecretsControllerTest < ActionController::TestCase test "controllers are locked by default" do # Test that the "lock_access" call in ApplicationController works properly. # There are no access rules in SecretsController but it should be locked anyway. get :index, nil, {roles: :admin} assert_redirected_to root_url get :index, nil, {roles: :editor} assert_redirected_to root_url get :index assert_redirected_to root_url end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
action_access-0.1.0 | test/controllers/secrets_controller_test.rb |