Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e2f64565
Commit
e2f64565
authored
Jun 16, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid use of allow_next_instance_of
parent
e37e754b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
spec/models/integrations/mattermost_slash_commands_spec.rb
spec/models/integrations/mattermost_slash_commands_spec.rb
+2
-3
No files found.
spec/models/integrations/mattermost_slash_commands_spec.rb
View file @
e2f64565
...
...
@@ -14,9 +14,8 @@ RSpec.describe Integrations::MattermostSlashCommands do
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment