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
d5261ef4
Commit
d5261ef4
authored
Aug 06, 2020
by
Coung Ngo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve iteration report specs
Improve specs as a result of reviewer comments
parent
678a662c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
ee/spec/features/groups/iterations/user_views_iteration_spec.rb
...c/features/groups/iterations/user_views_iteration_spec.rb
+14
-0
ee/spec/features/projects/iterations/user_views_iteration_spec.rb
...features/projects/iterations/user_views_iteration_spec.rb
+14
-0
No files found.
ee/spec/features/groups/iterations/user_views_iteration_spec.rb
View file @
d5261ef4
...
...
@@ -40,4 +40,18 @@ RSpec.describe 'User views iteration' do
end
end
end
context
'without license'
do
before
do
stub_licensed_features
(
iterations:
false
)
sign_in
(
user
)
end
it
'shows page not found'
do
visit
group_iteration_path
(
iteration
.
group
,
iteration
)
expect
(
page
).
to
have_title
(
'Not Found'
)
expect
(
page
).
to
have_content
(
'Page Not Found'
)
end
end
end
ee/spec/features/projects/iterations/user_views_iteration_spec.rb
View file @
d5261ef4
...
...
@@ -40,4 +40,18 @@ RSpec.describe 'User views iteration' do
end
end
end
context
'without license'
do
before
do
stub_licensed_features
(
iterations:
false
)
sign_in
(
user
)
end
it
'shows page not found'
do
visit
project_iteration_path
(
project
,
iteration
)
expect
(
page
).
to
have_title
(
'Not Found'
)
expect
(
page
).
to
have_content
(
'Page Not Found'
)
end
end
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