Skip to content

Commit e6fcbcb

Browse files
authored
update crystal petstore tets (#18766)
1 parent e6f3729 commit e6fcbcb

5 files changed

Lines changed: 4 additions & 266 deletions

File tree

samples/client/petstore/crystal/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<arguments>
3838
<argument>install</argument>
3939
<argument>--ignore-crystal-version</argument>
40+
<argument>--without-development</argument>
4041
</arguments>
4142
</configuration>
4243
</execution>
Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,14 @@
11
version: 2.0
22
shards:
3-
ameba:
4-
git: https://github.com/crystal-ameba/ameba.git
5-
version: 0.14.3
6-
73
crest:
84
git: https://github.com/mamantoha/crest.git
9-
version: 0.26.8
10-
11-
exception_page:
12-
git: https://github.com/crystal-loot/exception_page.git
13-
version: 0.1.5
5+
version: 1.3.13
146

157
http-client-digest_auth:
168
git: https://github.com/mamantoha/http-client-digest_auth.git
179
version: 0.6.0
1810

1911
http_proxy:
2012
git: https://github.com/mamantoha/http_proxy.git
21-
version: 0.8.0
22-
23-
kemal:
24-
git: https://github.com/kemalcr/kemal.git
25-
version: 0.27.0
26-
27-
kilt:
28-
git: https://github.com/jeromegn/kilt.git
29-
version: 0.4.1
30-
31-
radix:
32-
git: https://github.com/luislavena/radix.git
33-
version: 0.3.9
13+
version: 0.10.3
3414

samples/client/petstore/crystal/spec/models/pet_spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe Petstore::Pet do
1919

2020
describe "test an instance of Pet" do
2121
it "should fail to compile if any required properties is missing" do
22-
assert_compilation_error(path: "./pet_compilation_error_spec.cr", message: "Error: no overload matches 'Petstore::Pet.new', id: Nil, category: Nil, name: Nil, photo_urls: Array(String), tags: Nil, status: Nil")
22+
assert_compilation_error(path: "./pet_compilation_error_spec.cr", message: "Error: expected argument 'name' to 'Petstore::Pet.new' to be String, not Nil")
2323
end
2424

2525
it "should create an instance of Pet with only required properties" do

samples/client/petstore/crystal/spec/models/property_name_mapping_spec.cr

Lines changed: 0 additions & 50 deletions
This file was deleted.

samples/client/petstore/crystal/src/petstore/models/property_name_mapping.cr

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)