Replace old stub with new allow syntax
This commit is contained in:
parent
ce8961a2dc
commit
8e9d360260
3 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ describe Administrations::OmniauthCallbacksController, type: :controller do
|
|||
describe 'POST #github' do
|
||||
let(:params) { { "info" => { "email" => email } } }
|
||||
before do
|
||||
controller.stub(:sign_in).and_return true
|
||||
allow(controller).to receive(:sign_in).and_return true
|
||||
@request.env["omniauth.auth"] = params
|
||||
end
|
||||
subject { post :github }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue