Skip to content

Commit 78f82b1

Browse files
committed
Fix spec
1 parent ae8a0d8 commit 78f82b1

File tree

4 files changed

+5
-16
lines changed

4 files changed

+5
-16
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
patch_ruby (1.2.4)
4+
patch_ruby (1.2.5)
55
json (~> 2.1, >= 2.1.0)
66
typhoeus (~> 1.0, >= 1.0.1)
77

@@ -15,7 +15,7 @@ GEM
1515
ethon (0.12.0)
1616
ffi (>= 1.3.0)
1717
ffi (1.13.1)
18-
json (2.3.1)
18+
json (2.4.1)
1919
method_source (1.0.0)
2020
parallel (1.19.2)
2121
parser (2.7.1.4)

lib/patch_ruby/models/estimate.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def self.openapi_types
4242
:'id' => :'String',
4343
:'production' => :'Boolean',
4444
:'type' => :'String',
45-
:'order' => :'AnyOforder'
45+
:'order' => :'Order'
4646
}
4747
end
4848

@@ -239,7 +239,7 @@ def to_hash
239239
is_nullable = self.class.openapi_nullable.include?(attr)
240240
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
241241
end
242-
242+
243243
hash[param] = _to_hash(value)
244244
end
245245
hash

spec/integration/estimates_spec.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,4 @@
2424

2525
expect(estimates.length).not_to be_zero
2626
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
3827
end

spec/integration/orders_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
order = create_order_response.data
6666

6767
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)
6969
expect(order.price_cents_usd.to_i).to eq(500)
7070
expect(order.patch_fee_cents_usd).not_to be_empty
7171
expect(

0 commit comments

Comments
 (0)