diff --git a/spec/access_control_spec.rb b/spec/access_control_spec.rb index 6fb8cf0..8ef14ce 100644 --- a/spec/access_control_spec.rb +++ b/spec/access_control_spec.rb @@ -40,7 +40,7 @@ module Allowy end it "should not raise error" do - expect { subject.authorize! :read, 'allow' }.not_to raise_error AccessDenied + expect { subject.authorize! :read, 'allow' }.not_to raise_error end end diff --git a/spec/context_spec.rb b/spec/context_spec.rb index 9d68f6f..9a75304 100644 --- a/spec/context_spec.rb +++ b/spec/context_spec.rb @@ -8,7 +8,7 @@ class SampleContext describe Context do subject { SampleContext.new } - let(:access) { stub } + let(:access) { double("Access") } it "should create a registry" do Registry.should_receive(:new).with(subject) diff --git a/spec/rspec_spec.rb b/spec/rspec_spec.rb index e178427..93130ac 100644 --- a/spec/rspec_spec.rb +++ b/spec/rspec_spec.rb @@ -4,7 +4,7 @@ module Allowy describe ControllerAuthorizationMacros do include ControllerAuthorizationMacros - before { @controller = stub("FakeController") } + before { @controller = double("FakeController") } ignore_authorization!