Sha256: 4946c15d834a8d56b6bbd8f9fc475002ef1da210392c94909ebc64cdcb2ea63e

Contents?: true

Size: 542 Bytes

Versions: 7

Compression:

Stored size: 542 Bytes

Contents

require "spec_helper"

describe Arrthorizer::Rails::ControllerConfiguration do
  let(:config) { Arrthorizer::Rails::ControllerConfiguration.new do end }

  describe :for_action do
    context "when multiple actions are provided" do
      let(:actions) { [:show, :index] }

      it "calls add_action_block with each of those actions" do
        actions.each do |action|
          expect(config).to receive(:add_action_block).with(action)
        end

        config.for_action *actions do
          {}
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arrthorizer-0.3.2 spec/rails/controller_configuration/for_action_spec.rb
arrthorizer-0.3.1 spec/rails/controller_configuration/for_action_spec.rb
arrthorizer-0.3.0 spec/rails/controller_configuration/for_action_spec.rb
arrthorizer-0.2.1 spec/rails/controller_configuration/for_action_spec.rb
arrthorizer-0.2.0 spec/rails/controller_configuration/for_action_spec.rb
arrthorizer-0.1.3 spec/rails/controller_configuration/for_action_spec.rb
arrthorizer-0.1.2 spec/rails/controller_configuration/for_action_spec.rb