Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

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
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module Allowy
end end


it "should not raise error" do 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
end end


Expand Down
2 changes: 1 addition & 1 deletion spec/context_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class SampleContext
describe Context do describe Context do


subject { SampleContext.new } subject { SampleContext.new }
let(:access) { stub } let(:access) { double("Access") }


it "should create a registry" do it "should create a registry" do
Registry.should_receive(:new).with(subject) Registry.should_receive(:new).with(subject)
Expand Down
2 changes: 1 addition & 1 deletion spec/rspec_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
module Allowy module Allowy
describe ControllerAuthorizationMacros do describe ControllerAuthorizationMacros do
include ControllerAuthorizationMacros include ControllerAuthorizationMacros
before { @controller = stub("FakeController") } before { @controller = double("FakeController") }


ignore_authorization! ignore_authorization!


Expand Down

0 comments on commit 21db331

Please sign in to comment.