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
b6344fc3
Commit
b6344fc3
authored
Apr 21, 2021
by
Robert May
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure spec coverage for new feature
parent
d17b0580
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
spec/models/broadcast_message_spec.rb
spec/models/broadcast_message_spec.rb
+6
-0
No files found.
spec/models/broadcast_message_spec.rb
View file @
b6344fc3
...
...
@@ -120,6 +120,12 @@ RSpec.describe BroadcastMessage do
expect
(
subject
.
call
(
'/users/name/issues'
).
length
).
to
eq
(
1
)
end
it
'returns message if provided a path without a preceding slash'
do
create
(
:broadcast_message
,
target_path:
"/users/*/issues"
,
broadcast_type:
broadcast_type
)
expect
(
subject
.
call
(
'users/name/issues'
).
length
).
to
eq
(
1
)
end
it
'returns the message for empty target path'
do
create
(
:broadcast_message
,
target_path:
""
,
broadcast_type:
broadcast_type
)
...
...
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