From 3cbd6df6cf8704cda2c6645090bed380d366ec8b Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Tue, 9 Sep 2014 15:55:06 +0600 Subject: [PATCH] small spec change --- spec/controllers/api/v1/issues_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/api/v1/issues_controller_spec.rb b/spec/controllers/api/v1/issues_controller_spec.rb index a70ff7873..60f2924d8 100644 --- a/spec/controllers/api/v1/issues_controller_spec.rb +++ b/spec/controllers/api/v1/issues_controller_spec.rb @@ -139,7 +139,7 @@ describe Api::V1::IssuesController do end it 'can assignee issue in own project' do - post :create, @create_params.deep_merge(project_id: @own_hidden_project, issue: {assignee_id: @issue.user.id}) + post :create, @create_params.deep_merge(project_id: @own_hidden_project.id, issue: {assignee_id: @issue.user.id}) @own_hidden_project.issues.reload.last.assignee.id.should == @issue.user.id end