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

Issue board spec fixes

parent a9349f57
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
const list = new List(listObj); const list = new List(listObj);
this.state.lists.push(list); this.state.lists.push(list);
this.state.lists = _.sortBy(this.state.lists, 'position');
return list; return list;
}, },
new (listObj) { new (listObj) {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
return this.resolvedDiscussionCount === this.discussionCount; return this.resolvedDiscussionCount === this.discussionCount;
}, },
resolvedCountText() { 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 ...@@ -46,7 +46,7 @@ describe 'Issue Boards new issue', feature: true, js: true do
click_button 'Cancel' 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
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