spec/authority/controller_spec.rb in authority-0.2.0 vs spec/authority/controller_spec.rb in authority-0.3.0
- old
+ new
@@ -7,10 +7,10 @@
describe Authority::Controller do
describe "when including" do
it "should specify rescuing security transgressions" do
class DummyController < ExampleController ; end
- DummyController.should_receive(:rescue_from).with(Authority::SecurityTransgression, :with => 'forbidden')
+ DummyController.should_receive(:rescue_from).with(Authority::SecurityTransgression, :with => :authority_forbidden)
DummyController.send(:include, Authority::Controller)
end
end
describe "after including" do