Commit b6c10a90 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix undefined method avatar_path in geo specs

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 138d0f13
......@@ -259,6 +259,7 @@ describe Group do
end
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_avatar_url) { [geo_host, avatar_path].join }
......
......@@ -1023,6 +1023,7 @@ describe Project do
context 'When in a geo secondary node' do
let(:geo_url) { 'http://geo.example.com' }
let(:avatar_path) { project.avatar_path(only_path: true) }
before do
allow(Gitlab::Geo).to receive(:secondary?) { true }
......
......@@ -1183,6 +1183,7 @@ describe User do
end
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_avatar_url) { [geo_host, avatar_path].join }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment