[#37] fix spec

This commit is contained in:
Alexander Machehin 2013-08-19 19:40:58 +06:00
parent 7498a99718
commit 5a7e66b7d7
1 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,8 @@ describe Api::V1::IssuesController do
end end
it 'can assignee issue in own project' do it 'can assignee issue in own project' do
post :create, @create_params.deep_merge(:issue => {:assignee_id => @issue.user.id}) post :create, @create_params.deep_merge(:project_id => @own_hidden_project, :issue => {:assignee_id => @issue.user.id})
@project.issues.reload.last.assignee.id.should == @issue.user.id @own_hidden_project.issues.reload.last.assignee.id.should == @issue.user.id
end end
it "can't assignee issue in open project" do it "can't assignee issue in open project" do