Skip to content

Commit 45f13b2

Browse files
authored
Merge pull request #3258 from wing328/ruby_fix_test_case
[Ruby] minor update to ruby test cases
2 parents be4f4eb + c2f0397 commit 45f13b2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

modules/swagger-codegen/src/main/resources/ruby/model_test.mustache

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ require 'date'
2828
describe 'test attribute "{{{name}}}"' do
2929
it 'should work' do
3030
{{#isEnum}}
31-
validator = Petstore::EnumTest::EnumAttributeValidator.new('{{{datatype}}}', [{{#allowableValues}}{{#values}}"{{{this}}}"{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}])
32-
validator.allowable_values.each do |value|
33-
expect { @instance.{{name}} = value }.not_to raise_error
34-
end
31+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('{{{datatype}}}', [{{#allowableValues}}{{#values}}"{{{this}}}"{{^-last}}, {{/-last}}{{/values}}{{/allowableValues}}])
33+
#validator.allowable_values.each do |value|
34+
# expect { @instance.{{name}} = value }.not_to raise_error
35+
#end
3536
{{/isEnum}}
3637
{{^isEnum}}
3738
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers

0 commit comments

Comments
 (0)