Skip to content

Commit c2f0397

Browse files
committed
minor fix to ruby test cases
1 parent 75bd838 commit c2f0397

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)