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
8fa1f65e
Commit
8fa1f65e
authored
Jul 22, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Fix invalid tests.
parent
c00ff16f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
spec/features/merge_requests/user_uses_slash_commands_spec.rb
.../features/merge_requests/user_uses_slash_commands_spec.rb
+2
-2
spec/support/features/issuable_slash_commands_shared_examples.rb
...pport/features/issuable_slash_commands_shared_examples.rb
+3
-3
No files found.
spec/features/merge_requests/user_uses_slash_commands_spec.rb
View file @
8fa1f65e
...
...
@@ -67,7 +67,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
it
'does not change the WIP prefix'
do
write_note
(
"/wip"
)
expect
(
page
).
not_
to
have_content
'/wip'
expect
(
page
).
to
have_content
'/wip'
expect
(
page
).
not_to
have_content
'Commands applied'
expect
(
merge_request
.
reload
.
work_in_progress?
).
to
eq
false
...
...
@@ -197,7 +197,7 @@ feature 'Merge Requests > User uses quick actions', feature: true, js: true do
it
'does not change target branch'
do
write_note
(
'/target_branch merge-test'
)
expect
(
page
).
not_
to
have_content
'/target_branch merge-test'
expect
(
page
).
to
have_content
'/target_branch merge-test'
expect
(
merge_request
.
target_branch
).
to
eq
'feature'
end
...
...
spec/support/features/issuable_slash_commands_shared_examples.rb
View file @
8fa1f65e
...
...
@@ -119,7 +119,7 @@ shared_examples 'issuable record that supports quick actions in its description
it
"does not close the
#{
issuable_type
}
"
do
write_note
(
"/close"
)
expect
(
page
).
not_
to
have_content
'/close'
expect
(
page
).
to
have_content
'/close'
expect
(
page
).
not_to
have_content
'Commands applied'
expect
(
issuable
).
to
be_open
...
...
@@ -154,7 +154,7 @@ shared_examples 'issuable record that supports quick actions in its description
it
"does not reopen the
#{
issuable_type
}
"
do
write_note
(
"/reopen"
)
expect
(
page
).
not_
to
have_content
'/reopen'
expect
(
page
).
to
have_content
'/reopen'
expect
(
page
).
not_to
have_content
'Commands applied'
expect
(
issuable
).
to
be_closed
...
...
@@ -184,7 +184,7 @@ shared_examples 'issuable record that supports quick actions in its description
it
"does not reopen the
#{
issuable_type
}
"
do
write_note
(
"/title Awesome new title"
)
expect
(
page
).
not_
to
have_content
'/title'
expect
(
page
).
to
have_content
'/title'
expect
(
page
).
not_to
have_content
'Commands applied'
expect
(
issuable
.
reload
.
title
).
not_to
eq
'Awesome new title'
...
...
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