-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcreate_project_spec.rb
33 lines (29 loc) · 1.42 KB
/
create_project_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# frozen_string_literal: true
require 'spec_helper'
describe '[Project][Functional] createproject' do
let(:my_id) { api.people.get_self.body['response']['id'] }
let(:milestone) { { 'title' => 'MyMileStone', responsible: my_id } }
it 'createproject with milestone as array will create only one project' do
pending('Bug 58990')
project_id = api.project.create_project('MyProjectTitleAsArray',
'MyProjectDescription',
my_id,
nil,
false,
milestones: [milestone])
.body['response']['id']
expect(api.project.get_project(project_id)
.body['response']['milestoneCount']).to eq(1)
end
it 'createproject with milestone without array will create only one project' do
project_id = api.project.create_project('MyProjectTitleAsObject',
'MyProjectDescription',
my_id,
nil,
false,
milestones: milestone)
.body['response']['id']
expect(api.project.get_project(project_id)
.body['response']['milestoneCount']).to eq(1)
end
end