Commit 948b4828 authored by Phil Hughes's avatar Phil Hughes Committed by Fatih Acet

Issue board spec fixes

parent a9349f57
......@@ -27,6 +27,8 @@
const list = new List(listObj);
this.state.lists.push(list);
this.state.lists = _.sortBy(this.state.lists, 'position');
return list;
},
new (listObj) {
......
......@@ -15,7 +15,7 @@
return this.resolvedDiscussionCount === this.discussionCount;
},
resolvedCountText() {
return this.discussionCount === 0 ? 'discussion' : 'discussions';
return this.discussionCount === 1 ? 'discussion' : 'discussions';
}
}
});
......
......@@ -46,7 +46,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
click_button 'Cancel'
expect(page).to have_selector('.board-new-issue-form', visible: false)
expect(page).not_to have_selector('.board-new-issue-form')
end
end
......
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