Sha256: 00d88063b5fc64825e1f455fc5e1f2b62664596008bbd1e2540dbd16db728840
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
require "rails_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arrthorizer-0.4.2 | spec/rails/controller_configuration/for_action_spec.rb |
arrthorizer-0.4.1 | spec/rails/controller_configuration/for_action_spec.rb |