Fix specs after routing change
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
8249fcf54b
commit
c1b142b867
4 changed files with 7 additions and 7 deletions
|
@ -101,7 +101,7 @@ describe GitlabRoutingHelper do
|
|||
it 'returns project milestone edit path when given entity parent is not a Group' do
|
||||
milestone = create(:milestone, group: nil)
|
||||
|
||||
expect(edit_milestone_path(milestone)).to eq("/#{milestone.project.full_path}/milestones/#{milestone.iid}/edit")
|
||||
expect(edit_milestone_path(milestone)).to eq("/#{milestone.project.full_path}/-/milestones/#{milestone.iid}/edit")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -47,7 +47,7 @@ export const BoardsMockData = {
|
|||
},
|
||||
],
|
||||
},
|
||||
'/test/issue-boards/milestones.json': [
|
||||
'/test/issue-boards/-/milestones.json': [
|
||||
{
|
||||
id: 1,
|
||||
title: 'test',
|
||||
|
@ -58,10 +58,10 @@ export const BoardsMockData = {
|
|||
'/test/-/boards/1/lists': listObj,
|
||||
},
|
||||
PUT: {
|
||||
'/test/issue-boards/board/1/lists{/id}': {},
|
||||
'/test/issue-boards/-/board/1/lists{/id}': {},
|
||||
},
|
||||
DELETE: {
|
||||
'/test/issue-boards/board/1/lists{/id}': {},
|
||||
'/test/issue-boards/-/board/1/lists{/id}': {},
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -71,7 +71,7 @@ export const boardsMockInterceptor = config => {
|
|||
};
|
||||
|
||||
export const mockBoardService = (opts = {}) => {
|
||||
const boardsEndpoint = opts.boardsEndpoint || '/test/issue-boards/boards.json';
|
||||
const boardsEndpoint = opts.boardsEndpoint || '/test/issue-boards/-/boards.json';
|
||||
const listsEndpoint = opts.listsEndpoint || '/test/-/boards/1/lists';
|
||||
const bulkUpdatePath = opts.bulkUpdatePath || '';
|
||||
const boardId = opts.boardId || '1';
|
||||
|
|
|
@ -32,7 +32,7 @@ describe Gitlab::UrlBuilder do
|
|||
|
||||
url = described_class.build(milestone)
|
||||
|
||||
expect(url).to eq "#{Settings.gitlab['url']}/#{milestone.project.full_path}/milestones/#{milestone.iid}"
|
||||
expect(url).to eq "#{Settings.gitlab['url']}/#{milestone.project.full_path}/-/milestones/#{milestone.iid}"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1147,7 +1147,7 @@ describe Project do
|
|||
allow(project).to receive(:avatar_in_git) { true }
|
||||
end
|
||||
|
||||
let(:avatar_path) { "/#{project.full_path}/avatar" }
|
||||
let(:avatar_path) { "/#{project.full_path}/-/avatar" }
|
||||
|
||||
it { is_expected.to eq "http://#{Gitlab.config.gitlab.host}#{avatar_path}" }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue