Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
8
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in
Toggle navigation
Menu
Open sidebar
gitlab-qa-sandbox-group
qa-test-2019-05-06-03-38-42-40f225278db2df81
add-member-project-38ac0d05ff9a6e41
Commits
e3041b90
Commit
e3041b90
authored
Sep 17, 2015
by
Robert Speicher
Browse files
Merge branch 'rs-fix-specs' into 'master'
Remove old should syntax from spec See merge request !250
parents
c44014c8
510b17d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec/models/project_spec.rb
View file @
e3041b90
...
...
@@ -67,7 +67,7 @@ describe Project do
it
'returns ordered list of commits'
do
commit1
=
FactoryGirl
.
create
:commit
,
committed_at:
1
.
hour
.
ago
,
project:
project
commit2
=
FactoryGirl
.
create
:commit
,
committed_at:
2
.
hour
.
ago
,
project:
project
project
.
commits
.
should
==
[
commit2
,
commit1
]
expect
(
project
.
commits
).
to
eq
[
commit2
,
commit1
]
end
it
'returns commits ordered by committed_at and id, with nulls last'
do
...
...
@@ -75,7 +75,7 @@ describe Project do
commit2
=
FactoryGirl
.
create
:commit
,
committed_at:
nil
,
project:
project
commit3
=
FactoryGirl
.
create
:commit
,
committed_at:
2
.
hour
.
ago
,
project:
project
commit4
=
FactoryGirl
.
create
:commit
,
committed_at:
nil
,
project:
project
project
.
commits
.
should
==
[
commit2
,
commit4
,
commit3
,
commit1
]
expect
(
project
.
commits
).
to
eq
[
commit2
,
commit4
,
commit3
,
commit1
]
end
end
...
...
Write
Preview
Supports
Markdown
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