Skip to content

Commit

Permalink
Change: replace deprecated RSpec stub syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dalpo committed Sep 5, 2015
1 parent 8671927 commit 7d87bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/helpers/rails_admin/application_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(_user)
describe '#authorized?' do
before do
allow(RailsAdmin.config).to receive(:_current_user).and_return(FactoryGirl.create(:user))
helper.controller.stub(:authorization_adapter).and_return(RailsAdmin::AUTHORIZATION_ADAPTERS[:cancan].new(RailsAdmin.config, TestAbility))
allow(helper.controller).to receive(:authorization_adapter).and_return(RailsAdmin::AUTHORIZATION_ADAPTERS[:cancan].new(RailsAdmin.config, TestAbility))
end

it 'doesn\'t test unpersisted objects' do
Expand Down

0 comments on commit 7d87bfb

Please sign in to comment.