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
Léo-Paul Géneau
gitlab-ce
Commits
7b276a10
Commit
7b276a10
authored
Jan 29, 2018
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix an order dependency in a spec
parent
55f28ebb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/models/commit_spec.rb
spec/models/commit_spec.rb
+3
-3
No files found.
spec/models/commit_spec.rb
View file @
7b276a10
...
...
@@ -228,7 +228,7 @@ eos
it
{
expect
(
data
).
to
be_a
(
Hash
)
}
it
{
expect
(
data
[
:message
]).
to
include
(
'adds bar folder and branch-test text file to check Repository merged_to_root_ref method'
)
}
it
{
expect
(
data
[
:timestamp
]).
to
eq
(
'2016-09-27T14:37:46Z'
)
}
it
{
expect
(
data
[
:added
]).
to
eq
([
"bar/branch-test.txt"
]
)
}
it
{
expect
(
data
[
:added
]).
to
contain_exactly
(
"bar/branch-test.txt"
)
}
it
{
expect
(
data
[
:modified
]).
to
eq
([])
}
it
{
expect
(
data
[
:removed
]).
to
eq
([])
}
end
...
...
@@ -532,8 +532,8 @@ eos
let
(
:commit2
)
{
merge_request1
.
merge_request_diff
.
commits
.
first
}
it
'returns merge_requests that introduced that commit'
do
expect
(
commit1
.
merge_requests
).
to
eq
([
merge_request1
,
merge_request2
]
)
expect
(
commit2
.
merge_requests
).
to
eq
([
merge_request1
]
)
expect
(
commit1
.
merge_requests
).
to
contain_exactly
(
merge_request1
,
merge_request2
)
expect
(
commit2
.
merge_requests
).
to
contain_exactly
(
merge_request1
)
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