Commit 7c6f4ada authored by Felipe Artur's avatar Felipe Artur

Fix more specs

parent 62574be3
...@@ -115,7 +115,7 @@ class ListIssue { ...@@ -115,7 +115,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);
} }
} }
......
...@@ -53,7 +53,7 @@ module Boards ...@@ -53,7 +53,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
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,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" }
......
...@@ -42,7 +42,7 @@ describe('Issue card component', () => { ...@@ -42,7 +42,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