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
ddb82dde
Commit
ddb82dde
authored
Apr 03, 2018
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace `write_note` with `add_note` in spec files
parent
927b10f2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
spec/features/issues/user_uses_slash_commands_spec.rb
spec/features/issues/user_uses_slash_commands_spec.rb
+4
-4
spec/features/merge_request/user_uses_slash_commands_spec.rb
spec/features/merge_request/user_uses_slash_commands_spec.rb
+1
-1
No files found.
spec/features/issues/user_uses_slash_commands_spec.rb
View file @
ddb82dde
...
...
@@ -122,7 +122,7 @@ feature 'Issues > User uses quick actions', :js do
context
'when the user can update the weight'
do
it
'does not create a note, and sets the weight accordingly'
do
write
_note
(
"/weight 5"
)
add
_note
(
"/weight 5"
)
expect
(
page
).
not_to
have_content
'/weight 5'
expect
(
page
).
to
have_content
'Commands applied'
...
...
@@ -143,7 +143,7 @@ feature 'Issues > User uses quick actions', :js do
end
it
'does not create a note or set the weight'
do
write
_note
(
"/weight 5"
)
add
_note
(
"/weight 5"
)
expect
(
page
).
not_to
have_content
'Commands applied'
...
...
@@ -159,7 +159,7 @@ feature 'Issues > User uses quick actions', :js do
context
'when the user can update the weight'
do
it
'does not create a note, and removes the weight accordingly'
do
write
_note
(
"/clear_weight"
)
add
_note
(
"/clear_weight"
)
expect
(
page
).
not_to
have_content
'/clear_weight'
expect
(
page
).
to
have_content
'Commands applied'
...
...
@@ -180,7 +180,7 @@ feature 'Issues > User uses quick actions', :js do
end
it
'does create a note or set the weight'
do
write
_note
(
"/clear_weight"
)
add
_note
(
"/clear_weight"
)
expect
(
page
).
not_to
have_content
'Commands applied'
...
...
spec/features/merge_request/user_uses_slash_commands_spec.rb
View file @
ddb82dde
...
...
@@ -201,7 +201,7 @@ describe 'Merge request > User uses quick actions', :js do
describe
'adding a weight from a note'
do
it
'does not recognize the command nor create a note'
do
write
_note
(
"/weight 5"
)
add
_note
(
"/weight 5"
)
expect
(
page
).
not_to
have_content
'/weight 5'
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