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
Boxiang Sun
gitlab-ce
Commits
e78f1048
Commit
e78f1048
authored
Dec 20, 2016
by
Hiroyuki Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a blank line before first expect.
parent
b6d4c88d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+1
-0
No files found.
spec/models/repository_spec.rb
View file @
e78f1048
...
@@ -149,6 +149,7 @@ describe Repository, models: true do
...
@@ -149,6 +149,7 @@ describe Repository, models: true do
it
"caches #last_commit_id_for_path"
do
it
"caches #last_commit_id_for_path"
do
cache
=
repository
.
send
(
:cache
)
cache
=
repository
.
send
(
:cache
)
key
=
"last_commit_id_for_path:
#{
sample_commit
.
id
}
:
#{
Digest
::
SHA1
.
hexdigest
(
'.gitignore'
)
}
"
key
=
"last_commit_id_for_path:
#{
sample_commit
.
id
}
:
#{
Digest
::
SHA1
.
hexdigest
(
'.gitignore'
)
}
"
expect
(
cache
).
to
receive
(
:fetch
).
with
(
key
).
and_return
(
'c1acaa5'
)
expect
(
cache
).
to
receive
(
:fetch
).
with
(
key
).
and_return
(
'c1acaa5'
)
expect
(
repository
.
cache_last_commit_id_for_path
(
sample_commit
.
id
,
'.gitignore'
)).
to
eq
(
'c1acaa5'
)
expect
(
repository
.
cache_last_commit_id_for_path
(
sample_commit
.
id
,
'.gitignore'
)).
to
eq
(
'c1acaa5'
)
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