forked from loafle/openapi-generator-original
update crystal samples
This commit is contained in:
parent
c4a6c4a542
commit
04169ec29b
@ -1,6 +1,6 @@
|
|||||||
# 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
|
||||||
#
|
#
|
||||||
@ -17,7 +17,7 @@ require "../src/petstore"
|
|||||||
def assert_compilation_error(path : String, message : String) : Nil
|
def assert_compilation_error(path : String, message : String) : Nil
|
||||||
buffer = IO::Memory.new
|
buffer = IO::Memory.new
|
||||||
result = Process.run("crystal", ["run", "--no-color", "--no-codegen", path], error: buffer)
|
result = Process.run("crystal", ["run", "--no-color", "--no-codegen", path], error: buffer)
|
||||||
expect(result.success?).to be_false
|
result.success?.should be_false
|
||||||
expect(buffer.to_s).to contain message
|
buffer.to_s.should contain message
|
||||||
buffer.close
|
buffer.close
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user