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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
9feb145c
Commit
9feb145c
authored
Sep 06, 2018
by
Mehdi Lahmam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use un-namespaced project issuables path helper in specs
parent
e830cc05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
spec/support/features/issuable_quick_actions_shared_examples.rb
...upport/features/issuable_quick_actions_shared_examples.rb
+7
-7
No files found.
spec/support/features/issuable_quick_actions_shared_examples.rb
View file @
9feb145c
...
...
@@ -55,7 +55,7 @@ shared_examples 'issuable record that supports quick actions in its description
describe
"note on
#{
issuable_type
}
"
,
:js
do
before
do
visit
public_send
(
"
namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"
project_
#{
issuable_type
}
_path"
,
project
,
issuable
)
end
context
'with a note containing commands'
do
...
...
@@ -121,7 +121,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out
gitlab_sign_in
(
guest
)
visit
public_send
(
"
namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"
project_
#{
issuable_type
}
_path"
,
project
,
issuable
)
end
it
"does not close the
#{
issuable_type
}
"
do
...
...
@@ -158,7 +158,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out
gitlab_sign_in
(
guest
)
visit
public_send
(
"
namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"
project_
#{
issuable_type
}
_path"
,
project
,
issuable
)
end
it
"does not reopen the
#{
issuable_type
}
"
do
...
...
@@ -190,7 +190,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out
gitlab_sign_in
(
guest
)
visit
public_send
(
"
namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"
project_
#{
issuable_type
}
_path"
,
project
,
issuable
)
end
it
"does not change the
#{
issuable_type
}
title"
do
...
...
@@ -310,7 +310,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out
gitlab_sign_in
(
guest
)
visit
public_send
(
"
namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"
project_
#{
issuable_type
}
_path"
,
project
,
issuable
)
end
it
"does not lock the
#{
issuable_type
}
discussion"
do
...
...
@@ -347,7 +347,7 @@ shared_examples 'issuable record that supports quick actions in its description
gitlab_sign_out
gitlab_sign_in
(
guest
)
visit
public_send
(
"
namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"
project_
#{
issuable_type
}
_path"
,
project
,
issuable
)
end
it
"does not unlock the
#{
issuable_type
}
discussion"
do
...
...
@@ -365,7 +365,7 @@ shared_examples 'issuable record that supports quick actions in its description
it
'removes quick actions from note and explains them'
do
create
(
:user
,
username:
'bob'
)
visit
public_send
(
"
namespace_project_
#{
issuable_type
}
_path"
,
project
.
namespace
,
project
,
issuable
)
visit
public_send
(
"
project_
#{
issuable_type
}
_path"
,
project
,
issuable
)
page
.
within
(
'.js-main-target-form'
)
do
fill_in
'note[note]'
,
with:
"Awesome!
\n
/assign @bob "
...
...
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