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
cf46d335
Commit
cf46d335
authored
Aug 24, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Test for Group + owner name variants
parent
4a035e93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
spec/features/promotion_spec.rb
spec/features/promotion_spec.rb
+8
-3
No files found.
spec/features/promotion_spec.rb
View file @
cf46d335
...
...
@@ -179,8 +179,8 @@ describe 'Promotions', js: true do
describe
'for burndown charts'
,
js:
true
do
before
do
allow
(
License
).
to
receive
(
:current
).
and_return
(
nil
)
stub_application_setting
(
check_namespace_plan:
false
)
stub_application_setting
(
check_namespace_plan:
true
)
allow
(
Gitlab
).
to
receive
(
:com?
)
{
true
}
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
...
...
@@ -188,7 +188,12 @@ describe 'Promotions', js: true do
it
'should appear in milestone page'
do
visit
project_milestone_path
(
project
,
milestone
)
expect
(
find
(
'#promote_burndown_charts'
)).
to
have_content
'Improve milestones with Burndown Charts.'
expect
(
find
(
'#promote_burndown_charts'
)).
to
have_content
"Upgrade the plan for
#{
.
group
.
name
}
to improve milestones"
end
it
'should appear in milestone page with owners name'
do
visit
project_milestone_path
(
otherproject
,
milestone
)
expect
(
find
(
'#promote_burndown_charts'
)).
to
have_content
"Upgrade
#{
otherdeveloper
.
name
}
's plan to improve milestones with Burndown Charts."
end
it
'does not show when cookie is set'
do
...
...
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