Sha256: 472f48c29c8bdf7c0faa3b5adad8f1e97f7bd71b2f57c29e7d5ac918dcbda992

Contents?: true

Size: 303 Bytes

Versions: 15

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

RSpec.shared_examples 'Anon controller' do
  controller(described_class) do
    def an_action
      check_access!('required:permission')
      head :ok
    end

    def bad_action
      head :ok
    end

    def public
      public_action
      head :ok
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
aaf-gumboot-2.6.3 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.6.2 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.6.1 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.6.0 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.5.1 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.5.0 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.4.0 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.2.0 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.1.4 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.1.3 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.1.1 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.1.0 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-2.0.1 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-1.2.0 lib/gumboot/shared_examples/anonymous_controller.rb
aaf-gumboot-1.1.0 lib/gumboot/shared_examples/anonymous_controller.rb