Permalink
Browse files

Fix rspec deprecations

  • Loading branch information...
1 parent b1be9a0 commit 21db331027d5e9455188e3836f0c72a0681ebd50 @dnagir committed Feb 26, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 spec/access_control_spec.rb
  2. +1 −1 spec/context_spec.rb
  3. +1 −1 spec/rspec_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
View
@@ -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)
View
@@ -4,7 +4,7 @@
module Allowy
describe ControllerAuthorizationMacros do
include ControllerAuthorizationMacros
- before { @controller = stub("FakeController") }
+ before { @controller = double("FakeController") }
ignore_authorization!

0 comments on commit 21db331

Please sign in to comment.