Skip to content

Commit

Permalink
update ruby rspec test (#16702)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Oct 2, 2023
1 parent cec5b89 commit 97ee910
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ describe {{moduleName}}::{{classname}} do

describe 'test an instance of {{classname}}' do
it 'should create an instance of {{classname}}' do
expect(instance).to be_instance_of({{moduleName}}::{{classname}})
# uncomment below to test the instance creation
#expect(instance).to be_instance_of({{moduleName}}::{{classname}})
end
end

{{#vars}}
describe 'test attribute "{{{name}}}"' do
it 'should work' do
Expand Down Expand Up @@ -70,6 +72,7 @@ describe {{moduleName}}::{{classname}} do
{{/discriminator}}
describe '.build' do
it 'returns the correct model' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
end
{{/-first}}
Expand Down

0 comments on commit 97ee910

Please sign in to comment.