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
9c132216
Commit
9c132216
authored
Dec 14, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec fixes
parent
7d2affef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
spec/helpers/tree_helper_spec.rb
spec/helpers/tree_helper_spec.rb
+1
-1
spec/views/projects/tree/_blob_item.html.haml_spec.rb
spec/views/projects/tree/_blob_item.html.haml_spec.rb
+2
-2
spec/views/projects/tree/show.html.haml_spec.rb
spec/views/projects/tree/show.html.haml_spec.rb
+1
-1
No files found.
spec/helpers/tree_helper_spec.rb
View file @
9c132216
...
...
@@ -9,7 +9,7 @@ describe TreeHelper do
before
do
@id
=
sha
@project
=
project
@lfs_blobs
=
[]
@lfs_blob
_id
s
=
[]
end
it
'displays all entries without a warning'
do
...
...
spec/views/projects/tree/_blob_item.html.haml_spec.rb
View file @
9c132216
...
...
@@ -9,7 +9,7 @@ describe 'projects/tree/_blob_item' do
assign
(
:project
,
project
)
assign
(
:repository
,
repository
)
assign
(
:id
,
File
.
join
(
'master'
,
''
))
assign
(
:lfs_blobs
,
[])
assign
(
:lfs_blob
_id
s
,
[])
end
it
'renders blob item'
do
...
...
@@ -21,7 +21,7 @@ describe 'projects/tree/_blob_item' do
describe
'LFS blob'
do
before
do
assign
(
:lfs_blob
s
,
[
blob_item
]
)
assign
(
:lfs_blob
_ids
,
[
blob_item
].
map
(
&
:id
)
)
render_partial
(
blob_item
)
end
...
...
spec/views/projects/tree/show.html.haml_spec.rb
View file @
9c132216
...
...
@@ -9,7 +9,7 @@ describe 'projects/tree/show' do
before
do
assign
(
:project
,
project
)
assign
(
:repository
,
repository
)
assign
(
:lfs_blobs
,
[])
assign
(
:lfs_blob
_id
s
,
[])
allow
(
view
).
to
receive
(
:can?
).
and_return
(
true
)
allow
(
view
).
to
receive
(
:can_collaborate_with_project?
).
and_return
(
true
)
...
...
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