Skip to content
Snippets Groups Projects
Commit e2f64565 authored by Alexis Kalderimis's avatar Alexis Kalderimis :speech_balloon:
Browse files

Avoid use of allow_next_instance_of

parent e37e754b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -14,9 +14,8 @@
session = ::Mattermost::Session.new(nil)
session.base_uri = 'http://mattermost.example.com'
 
allow_next_instance_of(::Mattermost::Client) do |client|
allow(client).to receive(:with_session).and_yield(session)
end
allow(session).to receive(:with_session).and_yield(session)
allow(::Mattermost::Session).to receive(:new).and_return(session)
end
 
describe '#configure' do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment