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