suppress devise warnings on rspec tests
This commit is contained in:
parent
cc99ed001d
commit
d64fe002dc
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ module ControllerHelpers
|
|||
receive(:authenticate!).and_throw(:warden, scope: :user)
|
||||
)
|
||||
else # simulate authenticated
|
||||
allow_message_expectations_on_nil
|
||||
allow(request.env['warden']).to(
|
||||
receive(:authenticate!).and_return(user)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue