Sha256: 74ce978502da8453193bd0f9a7fa8bc54535d4a6b8c34ec3d822d8261acf0a6f

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 Bytes

Contents

require 'test_helper'

class StaticControllerTest < ActionController::TestCase
  # Test that the :all key works properly
  test "anyone can do anything" do
    get :home, nil, {role: :admin}
    assert_response :success

    get :home, nil, {role: :undefined}
    assert_response :success

    get :home
    assert_response :success
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
action_access-0.0.3 test/controllers/static_controller_test.rb
action_access-0.0.2 test/controllers/static_controller_test.rb
action_access-0.0.1 test/controllers/static_controller_test.rb