mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-04-27 06:44:18 +00:00
[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:
+1
-1
@@ -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