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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
711db9cf
Commit
711db9cf
authored
Jul 23, 2020
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply 7 suggestion(s) to 4 file(s)
parent
3b27a458
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
spec/presenters/blob_presenter_spec.rb
spec/presenters/blob_presenter_spec.rb
+1
-1
spec/presenters/commit_presenter_spec.rb
spec/presenters/commit_presenter_spec.rb
+1
-1
spec/presenters/tree_entry_presenter_spec.rb
spec/presenters/tree_entry_presenter_spec.rb
+1
-1
spec/presenters/user_presenter_spec.rb
spec/presenters/user_presenter_spec.rb
+4
-4
No files found.
spec/presenters/blob_presenter_spec.rb
View file @
711db9cf
...
...
@@ -24,7 +24,7 @@ RSpec.describe BlobPresenter, :seed_helper do
it
{
expect
(
subject
.
web_url
).
to
eq
(
"http://localhost/
#{
project
.
full_path
}
/-/blob/
#{
blob
.
commit_id
}
/
#{
blob
.
path
}
"
)
}
end
describe
'
.
web_path'
do
describe
'
#
web_path'
do
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
(
:repository
)
{
project
.
repository
}
let
(
:blob
)
{
Gitlab
::
Graphql
::
Representation
::
TreeEntry
.
new
(
repository
.
tree
.
blobs
.
first
,
repository
)
}
...
...
spec/presenters/commit_presenter_spec.rb
View file @
711db9cf
...
...
@@ -8,7 +8,7 @@ RSpec.describe CommitPresenter do
let
(
:user
)
{
create
(
:user
)
}
let
(
:presenter
)
{
described_class
.
new
(
commit
,
current_user:
user
)
}
describe
'
.
web_path'
do
describe
'
#
web_path'
do
it
{
expect
(
presenter
.
web_path
).
to
eq
(
"/
#{
project
.
full_path
}
/-/commit/
#{
commit
.
sha
}
"
)
}
end
...
...
spec/presenters/tree_entry_presenter_spec.rb
View file @
711db9cf
...
...
@@ -14,7 +14,7 @@ RSpec.describe TreeEntryPresenter do
it
{
expect
(
presenter
.
web_url
).
to
eq
(
"http://localhost/
#{
project
.
full_path
}
/-/tree/
#{
tree
.
commit_id
}
/
#{
tree
.
path
}
"
)
}
end
describe
'
.
web_path'
do
describe
'
#
web_path'
do
it
{
expect
(
presenter
.
web_path
).
to
eq
(
"/
#{
project
.
full_path
}
/-/tree/
#{
tree
.
commit_id
}
/
#{
tree
.
path
}
"
)
}
end
end
spec/presenters/user_presenter_spec.rb
View file @
711db9cf
...
...
@@ -3,14 +3,14 @@
require
'spec_helper'
RSpec
.
describe
UserPresenter
do
let
(
:user
)
{
create
(
:user
)
}
le
t
(
:presenter
)
{
described_class
.
new
(
user
)
}
let
_it_be
(
:user
)
{
create
(
:user
)
}
subjec
t
(
:presenter
)
{
described_class
.
new
(
user
)
}
describe
'
.
web_path'
do
describe
'
#
web_path'
do
it
{
expect
(
presenter
.
web_path
).
to
eq
(
"/
#{
user
.
username
}
"
)
}
end
describe
'
.
web_url'
do
describe
'
#
web_url'
do
it
{
expect
(
presenter
.
web_url
).
to
eq
(
"http://localhost/
#{
user
.
username
}
"
)
}
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