From 21db331027d5e9455188e3836f0c72a0681ebd50 Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Wed, 26 Feb 2014 13:39:47 +1100 Subject: [PATCH] Fix rspec deprecations --- spec/access_control_spec.rb | 2 +- spec/context_spec.rb | 2 +- spec/rspec_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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!