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
3e62d6ec
Commit
3e62d6ec
authored
Sep 24, 2020
by
Corinna Wiesner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove created at for undecryptable license spec
parent
755a4259
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ee/spec/models/license_spec.rb
ee/spec/models/license_spec.rb
+2
-3
No files found.
ee/spec/models/license_spec.rb
View file @
3e62d6ec
...
...
@@ -849,10 +849,8 @@ RSpec.describe License do
described_class
.
delete_all
end
let_it_be
(
:today
)
{
Date
.
current
}
it
'does not include the undecryptable license'
do
undecryptable_license
=
create
(
:license
,
created_at:
today
)
undecryptable_license
=
create
(
:license
)
allow
(
undecryptable_license
).
to
receive
(
:license
).
and_return
(
nil
)
allow
(
License
).
to
receive
(
:all
).
and_return
([
undecryptable_license
])
...
...
@@ -861,6 +859,7 @@ RSpec.describe License do
end
it
'returns the licenses sorted by created_at, starts_at and expires_at descending'
do
today
=
Date
.
current
now
=
Time
.
current
past_license
=
create
(
:license
,
created_at:
now
-
1
.
month
,
data:
build
(
:gitlab_license
,
starts_at:
today
-
1
.
month
,
expires_at:
today
+
11
.
months
).
export
)
...
...
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