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
68658c2e
Commit
68658c2e
authored
Jun 16, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a named subject
parent
54acf9bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
spec/models/integrations/flowdock_spec.rb
spec/models/integrations/flowdock_spec.rb
+3
-1
No files found.
spec/models/integrations/flowdock_spec.rb
View file @
68658c2e
...
...
@@ -29,10 +29,11 @@ RSpec.describe Integrations::Flowdock do
describe
"Execute"
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:flowdock_integration
)
{
subject
}
let
(
:sample_data
)
{
Gitlab
::
DataBuilder
::
Push
.
build_sample
(
project
,
user
)
}
let
(
:api_url
)
{
'https://api.flowdock.com/v1/messages'
}
subject
(
:flowdock_integration
)
{
described_class
.
new
}
before
do
allow
(
flowdock_integration
).
to
receive_messages
(
project_id:
project
.
id
,
...
...
@@ -45,6 +46,7 @@ RSpec.describe Integrations::Flowdock do
it
"calls FlowDock API"
do
flowdock_integration
.
execute
(
sample_data
)
sample_data
[
:commits
].
each
do
|
commit
|
# One request to Flowdock per new commit
next
if
commit
[
:id
]
==
sample_data
[
:before
]
...
...
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