Sha256: 5c9c5019206d3b063f9695c48d30411ac0f2a29249d5ade6a1aab8886c5160ba
Contents?: true
Size: 662 Bytes
Versions: 6
Compression:
Stored size: 662 Bytes
Contents
require 'spec_helper' describe Arrthorizer::Rails::ControllerAction do describe :get_current do let(:controller) { double('controller') } before :each do Arrthorizer::Rails::ControllerAction.stub(:key_for).with(controller).and_return("controller#action") end context "when there is no configuration for the current action" do let(:expected_error) { Arrthorizer::Rails::ControllerAction::ActionNotConfigured } specify "an ActionNotConfigured exception is raised" do expect { Arrthorizer::Rails::ControllerAction.get_current(controller) }.to raise_error(expected_error) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems