Skip to content

Commit

Permalink
Fix rspec deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
dnagir committed Feb 26, 2014
1 parent b1be9a0 commit 21db331
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/access_control_spec.rb
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/context_spec.rb
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec_spec.rb
Expand Up @@ -4,7 +4,7 @@
module Allowy
describe ControllerAuthorizationMacros do
include ControllerAuthorizationMacros
before { @controller = stub("FakeController") }
before { @controller = double("FakeController") }

ignore_authorization!

Expand Down

0 comments on commit 21db331

Please sign in to comment.