update crystal samples

This commit is contained in:
William Cheng 2025-04-03 01:39:13 +08:00
parent c4a6c4a542
commit 04169ec29b

View File

@ -1,11 +1,11 @@
# OpenAPI Petstore
# #OpenAPI Petstore
#
# This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
##This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
#
# The version of the OpenAPI document: 1.0.0
#The version of the OpenAPI document: 1.0.0
#
# Generated by: https://openapi-generator.tech
# Generator version: 7.13.0-SNAPSHOT
#Generated by: https://openapi-generator.tech
#Generator version: 7.13.0-SNAPSHOT
#
# load modules
@ -17,7 +17,7 @@ require "../src/petstore"
def assert_compilation_error(path : String, message : String) : Nil
buffer = IO::Memory.new
result = Process.run("crystal", ["run", "--no-color", "--no-codegen", path], error: buffer)
expect(result.success?).to be_false
expect(buffer.to_s).to contain message
result.success?.should be_false
buffer.to_s.should contain message
buffer.close
end