Commit 4fdfa421 authored by Clement Ho's avatar Clement Ho

Fix FE part of issues spec

parent 7b5c9521
......@@ -33,14 +33,12 @@ export default {
saveAssignees() {
this.loading = true;
function setLoadingFalse() {
this.loading = false;
}
this.mediator.saveAssignees(this.field)
.then(setLoadingFalse.bind(this))
.then(() => {
this.loading = false;
})
.catch(() => {
setLoadingFalse();
this.loading = false;
return new Flash('Error occurred when saving assignees');
});
},
......
......@@ -742,7 +742,7 @@ describe 'Issues', feature: true do
include WaitForVueResource
it 'updates the title', js: true do
issue = create(:issue, author: @user, assignee: @user, project: project, title: 'new title')
issue = create(:issue, author: @user, assignees: [@user], project: project, title: 'new title')
visit namespace_project_issue_path(project.namespace, project, issue)
......
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