forked from loafle/openapi-generator-original
[Ruby] fix ruby test, update error message (#4041)
* fix ruby test, update error message * use block * update template for api client spec * update test files
This commit is contained in:
@@ -150,7 +150,7 @@ describe {{moduleName}}::ApiClient do
|
||||
end
|
||||
|
||||
it 'fails for invalid collection format' do
|
||||
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
||||
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ describe Petstore::ApiClient do
|
||||
end
|
||||
|
||||
it 'fails for invalid collection format' do
|
||||
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
||||
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ describe Petstore::ApiClient do
|
||||
end
|
||||
|
||||
it 'fails for invalid collection format' do
|
||||
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
||||
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ describe Petstore::ApiClient do
|
||||
end
|
||||
|
||||
it 'fails for invalid collection format' do
|
||||
expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
||||
expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user