File tree Expand file tree Collapse file tree 4 files changed +5
-16
lines changed Expand file tree Collapse file tree 4 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- patch_ruby (1.2.4 )
4
+ patch_ruby (1.2.5 )
5
5
json (~> 2.1 , >= 2.1.0 )
6
6
typhoeus (~> 1.0 , >= 1.0.1 )
7
7
15
15
ethon (0.12.0 )
16
16
ffi (>= 1.3.0 )
17
17
ffi (1.13.1 )
18
- json (2.3 .1 )
18
+ json (2.4 .1 )
19
19
method_source (1.0.0 )
20
20
parallel (1.19.2 )
21
21
parser (2.7.1.4 )
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def self.openapi_types
42
42
:'id' => :'String' ,
43
43
:'production' => :'Boolean' ,
44
44
:'type' => :'String' ,
45
- :'order' => :'AnyOforder '
45
+ :'order' => :'Order '
46
46
}
47
47
end
48
48
@@ -239,7 +239,7 @@ def to_hash
239
239
is_nullable = self . class . openapi_nullable . include? ( attr )
240
240
next if !is_nullable || ( is_nullable && !instance_variable_defined? ( :"@#{ attr } " ) )
241
241
end
242
-
242
+
243
243
hash [ param ] = _to_hash ( value )
244
244
end
245
245
hash
Original file line number Diff line number Diff line change 24
24
25
25
expect ( estimates . length ) . not_to be_zero
26
26
end
27
-
28
- it 'supports create with a project-id' do
29
- retrieve_projects_response = Patch ::Project . retrieve_projects ( page : 1 )
30
- project_id = retrieve_projects_response . data . first . id
31
- create_estimate_response = Patch ::Estimate . create_mass_estimate ( mass_g : 100 , project_id : project_id )
32
- estimate_id = create_estimate_response . data . id
33
-
34
- expect ( create_estimate_response . success ) . to eq true
35
- expect ( create_estimate_response . data . order . id ) . not_to be_nil
36
- expect ( create_estimate_response . data . order . mass_g ) . to eq ( 100 )
37
- end
38
27
end
Original file line number Diff line number Diff line change 65
65
order = create_order_response . data
66
66
67
67
expect ( order . id ) . not_to be_nil
68
- expect ( order . mass_g ) . to eq ( 5_000_000 )
68
+ expect ( order . mass_g ) . to eq ( 5_00_000 )
69
69
expect ( order . price_cents_usd . to_i ) . to eq ( 500 )
70
70
expect ( order . patch_fee_cents_usd ) . not_to be_empty
71
71
expect (
You can’t perform that action at this time.
0 commit comments