From 5a7e66b7d7be07002702eb147b3d852563dc32ff Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 19 Aug 2013 19:40:58 +0600 Subject: [PATCH] [#37] fix spec --- spec/controllers/api/v1/issues_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/api/v1/issues_controller_spec.rb b/spec/controllers/api/v1/issues_controller_spec.rb index 2b7fcc652..f7342a774 100644 --- a/spec/controllers/api/v1/issues_controller_spec.rb +++ b/spec/controllers/api/v1/issues_controller_spec.rb @@ -141,8 +141,8 @@ describe Api::V1::IssuesController do end it 'can assignee issue in own project' do - post :create, @create_params.deep_merge(:issue => {:assignee_id => @issue.user.id}) - @project.issues.reload.last.assignee.id.should == @issue.user.id + post :create, @create_params.deep_merge(:project_id => @own_hidden_project, :issue => {:assignee_id => @issue.user.id}) + @own_hidden_project.issues.reload.last.assignee.id.should == @issue.user.id end it "can't assignee issue in open project" do