Skip to content

Commit c9433f5

Browse files
committed
fix(crystal): enable some API tests, mark others as pending
1 parent a7e6e65 commit c9433f5

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

modules/openapi-generator/src/main/resources/crystal/api_test.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Spectator.describe "{{classname}}" do
1010
describe "test an instance of {{classname}}" do
1111
it "should create an instance of {{classname}}" do
1212
api_instance = {{moduleName}}::{{classname}}.new
13-
# TODO expect(api_instance).to be_instance_of({{moduleName}}::{{classname}})
13+
expect(api_instance).to be_instance_of({{moduleName}}::{{classname}})
1414
end
1515
end
1616

@@ -27,7 +27,7 @@ Spectator.describe "{{classname}}" do
2727
{{#allParams}}{{^required}} # @option opts [{{{dataType}}}] :{{paramName}} {{description}}
2828
{{/required}}{{/allParams}} # @return [{{{returnType}}}{{^returnType}}nil{{/returnType}}]
2929
describe "{{operationId}} test" do
30-
it "should work" do
30+
skip "should work" do
3131
# assertion here. ref: https://crystal-lang.org/reference/guides/testing.html
3232
end
3333
end

modules/openapi-generator/src/main/resources/crystal/model_test.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ Spectator.describe {{moduleName}}::{{classname}} do
1111
{{^oneOf}}
1212

1313
describe "test an instance of {{classname}}" do
14-
it "should create an instance of {{classname}}" do
14+
skip "should create an instance of {{classname}}" do
1515
#instance = {{moduleName}}::{{classname}}.new
1616
#expect(instance).to be_instance_of({{moduleName}}::{{classname}})
1717
end
1818
end
1919
{{#vars}}
2020
describe "test attribute '{{{name}}}'" do
21-
it "should work" do
21+
skip "should work" do
2222
{{#isEnum}}
2323
# assertion here. ref: https://crystal-lang.org/reference/guides/testing.html
2424
# validator = Petstore::EnumTest::EnumAttributeValidator.new("{{{dataType}}}", [{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}])
@@ -63,7 +63,7 @@ Spectator.describe {{moduleName}}::{{classname}} do
6363
{{/mappedModels}}
6464
{{/discriminator}}
6565
describe ".build" do
66-
it "returns the correct model" do
66+
skip "returns the correct model" do
6767
end
6868
end
6969
{{/-first}}

0 commit comments

Comments
 (0)