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
f40aecdd
Commit
f40aecdd
authored
Mar 07, 2019
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update event filter spec to included removed event types
parent
bdae5306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
spec/lib/event_filter_spec.rb
spec/lib/event_filter_spec.rb
+5
-2
No files found.
spec/lib/event_filter_spec.rb
View file @
f40aecdd
...
...
@@ -26,7 +26,10 @@ describe EventFilter do
set
(
:push_event
)
{
create
(
:push_event
,
project:
public_project
)
}
set
(
:merged_event
)
{
create
(
:event
,
:merged
,
project:
public_project
,
target:
public_project
)
}
set
(
:issue_event
)
{
create
(
:event
,
:created
,
project:
public_project
,
target:
create
(
:issue
,
project:
public_project
))
}
set
(
:created_event
)
{
create
(
:event
,
:created
,
project:
public_project
,
target:
create
(
:issue
,
project:
public_project
))
}
set
(
:updated_event
)
{
create
(
:event
,
:updated
,
project:
public_project
,
target:
create
(
:issue
,
project:
public_project
))
}
set
(
:closed_event
)
{
create
(
:event
,
:closed
,
project:
public_project
,
target:
create
(
:issue
,
project:
public_project
))
}
set
(
:reopened_event
)
{
create
(
:event
,
:reopened
,
project:
public_project
,
target:
create
(
:issue
,
project:
public_project
))
}
set
(
:comments_event
)
{
create
(
:event
,
:commented
,
project:
public_project
,
target:
public_project
)
}
set
(
:joined_event
)
{
create
(
:event
,
:joined
,
project:
public_project
,
target:
public_project
)
}
set
(
:left_event
)
{
create
(
:event
,
:left
,
project:
public_project
,
target:
public_project
)
}
...
...
@@ -53,7 +56,7 @@ describe EventFilter do
let
(
:filter
)
{
described_class
::
ISSUE
}
it
'filters issue events only'
do
expect
(
filtered_events
).
to
contain_exactly
(
issue
_event
)
expect
(
filtered_events
).
to
contain_exactly
(
created_event
,
updated_event
,
closed_event
,
reopened
_event
)
end
end
...
...
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