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
b6c10a90
Commit
b6c10a90
authored
Nov 14, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix undefined method avatar_path in geo specs
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
138d0f13
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
spec/models/group_spec.rb
spec/models/group_spec.rb
+1
-0
spec/models/project_spec.rb
spec/models/project_spec.rb
+1
-0
spec/models/user_spec.rb
spec/models/user_spec.rb
+1
-0
No files found.
spec/models/group_spec.rb
View file @
b6c10a90
...
@@ -259,6 +259,7 @@ describe Group do
...
@@ -259,6 +259,7 @@ describe Group do
end
end
context
'when in a geo secondary node'
do
context
'when in a geo secondary node'
do
let
(
:avatar_path
)
{
group
.
avatar_path
(
only_path:
true
)
}
let
(
:geo_host
)
{
'http://geo.example.com'
}
let
(
:geo_host
)
{
'http://geo.example.com'
}
let
(
:geo_avatar_url
)
{
[
geo_host
,
avatar_path
].
join
}
let
(
:geo_avatar_url
)
{
[
geo_host
,
avatar_path
].
join
}
...
...
spec/models/project_spec.rb
View file @
b6c10a90
...
@@ -1023,6 +1023,7 @@ describe Project do
...
@@ -1023,6 +1023,7 @@ describe Project do
context
'When in a geo secondary node'
do
context
'When in a geo secondary node'
do
let
(
:geo_url
)
{
'http://geo.example.com'
}
let
(
:geo_url
)
{
'http://geo.example.com'
}
let
(
:avatar_path
)
{
project
.
avatar_path
(
only_path:
true
)
}
before
do
before
do
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary?
)
{
true
}
allow
(
Gitlab
::
Geo
).
to
receive
(
:secondary?
)
{
true
}
...
...
spec/models/user_spec.rb
View file @
b6c10a90
...
@@ -1183,6 +1183,7 @@ describe User do
...
@@ -1183,6 +1183,7 @@ describe User do
end
end
context
'when in a geo secondary node'
do
context
'when in a geo secondary node'
do
let
(
:avatar_path
)
{
user
.
avatar_path
(
only_path:
true
)
}
let
(
:geo_host
)
{
'http://geo.example.com'
}
let
(
:geo_host
)
{
'http://geo.example.com'
}
let
(
:geo_avatar_url
)
{
[
geo_host
,
avatar_path
].
join
}
let
(
:geo_avatar_url
)
{
[
geo_host
,
avatar_path
].
join
}
...
...
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