Commit a53b4ebf authored by Felipe Artur's avatar Felipe Artur

Fix more specs

parent b84c6fb1
...@@ -119,7 +119,7 @@ class ListIssue { ...@@ -119,7 +119,7 @@ class ListIssue {
} }
const projectPath = this.project ? this.project.path : ''; const projectPath = this.project ? this.project.path : '';
return Vue.http.patch(this.path + '.json', data); return Vue.http.patch(`${this.path}.json`, data);
} }
} }
......
...@@ -55,7 +55,7 @@ module Boards ...@@ -55,7 +55,7 @@ module Boards
end end
def set_scope def set_scope
params[:include_subgroups] = true if board.group_board? params[:include_subgroups] = board.group_board?
end end
def board_label_ids def board_label_ids
......
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
"relative_position": { "type": "integer" }, "relative_position": { "type": "integer" },
"issue_sidebar_endpoint": { "type": "string" }, "issue_sidebar_endpoint": { "type": "string" },
"toggle_subscription_endpoint": { "type": "string" }, "toggle_subscription_endpoint": { "type": "string" },
"reference_path": { "type": "string" },
"real_path": { "type": "string" },
"project": { "project": {
"id": { "type": "integer" }, "id": { "type": "integer" },
"path": { "type": "string" } "path": { "type": "string" }
......
...@@ -43,7 +43,7 @@ describe('Issue card component', () => { ...@@ -43,7 +43,7 @@ describe('Issue card component', () => {
labels: [list.label], labels: [list.label],
assignees: [], assignees: [],
reference_path: '#1', reference_path: '#1',
real_path: '/test/1' real_path: '/test/1',
}); });
component = new Vue({ component = new Vue({
......
...@@ -102,7 +102,7 @@ describe Boards::Issues::ListService do ...@@ -102,7 +102,7 @@ describe Boards::Issues::ListService do
it_behaves_like 'issues list service' it_behaves_like 'issues list service'
end end
context 'and group is an ancestor' do context 'and group is an ancestor', :nested_groups do
let(:parent) { create(:group) } let(:parent) { create(:group) }
let(:group) { create(:group, parent: parent) } let(:group) { create(:group, parent: parent) }
let!(:backlog) { create(:backlog_list, board: board) } let!(:backlog) { create(:backlog_list, board: board) }
......
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