提交 948b4828 编写于 作者: P Phil Hughes 提交者: Fatih Acet

Issue board spec fixes

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册