Fixed api/v1/issues_controller_spec

This commit is contained in:
Vokhmin Alexey V 2014-09-19 23:15:33 +04:00
parent cedd9b8b28
commit 29ad6f4960
1 changed files with 2 additions and 2 deletions

View File

@ -140,12 +140,12 @@ describe Api::V1::IssuesController do
it 'can assignee issue in own project' do
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
@own_hidden_project.issues.order(:id).last.assignee.id.should == @issue.user.id
end
it "can't assignee issue in open project" do
post :create, @create_params.deep_merge(project_id: @open_project.id, issue: {assignee_id: @issue.user.id})
@open_project.issues.reload.last.assignee.should be_nil
@open_project.issues.order(:id).last.assignee.should be_nil
end
end