Closed ekrc-1 closed 4 years ago
@1grc Thank you for your contribution 😄 Could you write some test codes?
@1grc Thank you for your contribution 😄 Could you write some test codes?
@syguer
OK, added test code.
I worried if I should add a test code for 'return a random element or n random elements'.
Is this in line with your wishes?
@1grc Thanks! Yes, it looks good!
[IMO] It seems the first test is covered by the second one so I think it is enough by second case.
@syguer Thank you for your kindness! 😄
[IMO] It seems the first test is covered by the second one so I think it is enough by second case.
Right. Do I need to delete the first test case? (Is it unnecessary because it has already been merged?)
No, you don't have to do. Thanks 👍
In this PR, delegate macro will accept
#sample
method torecords
(same as ActiveRecord)before
after