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
7b7eb2ca
Commit
7b7eb2ca
authored
Feb 16, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for license expiration duration message
parent
9be00fd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
ee/spec/features/admin/admin_license_spec.rb
ee/spec/features/admin/admin_license_spec.rb
+24
-0
No files found.
ee/spec/features/admin/admin_license_spec.rb
View file @
7b7eb2ca
...
...
@@ -27,6 +27,30 @@ feature "License Admin" do
end
end
context
'with a trial license'
do
let!
(
:license
)
{
create
(
:license
,
trial:
true
)
}
it
'shows expiration duration with license type'
do
visit
admin_license_path
page
.
within
'.js-license-info-panel'
do
expect
(
page
).
to
have_content
(
'Expires: Free trial will expire in'
)
end
end
end
context
'with a regular license'
do
let!
(
:license
)
{
create
(
:license
)
}
it
'shows only expiration duration'
do
visit
admin_license_path
page
.
within
'.js-license-info-panel'
do
expect
(
page
).
not_to
have_content
(
'Expires: Free trial will expire in'
)
end
end
end
context
'with an expired trial license'
do
let!
(
:license
)
{
create
(
:license
,
trial:
true
,
expired:
true
)
}
...
...
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