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
Tatuya Kamada
gitlab-ce
Commits
3dfb6a30
Commit
3dfb6a30
authored
Jan 31, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak test to verify there are no duplicates
parent
c8b63a28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/models/environment_spec.rb
spec/models/environment_spec.rb
+2
-2
No files found.
spec/models/environment_spec.rb
View file @
3dfb6a30
...
...
@@ -27,11 +27,11 @@ describe Environment, models: true do
let!
(
:environment1
)
{
create
(
:environment
,
project:
project
)
}
let!
(
:environment2
)
{
create
(
:environment
,
project:
project
)
}
let!
(
:environment3
)
{
create
(
:environment
,
project:
project
)
}
let!
(
:deployment2
)
{
create
(
:deployment
,
environment:
environment2
)
}
let!
(
:deployment1
)
{
create
(
:deployment
,
environment:
environment1
)
}
let!
(
:deployment2
)
{
create
(
:deployment
,
environment:
environment2
)
}
let!
(
:deployment3
)
{
create
(
:deployment
,
environment:
environment1
)
}
it
'returns the environments in order of having been last deployed'
do
# byebug
expect
(
project
.
environments
.
order_by_last_deployed_at
.
to_a
).
to
eq
([
environment3
,
environment2
,
environment1
])
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