ruby - Simplifying rspec unit tests -
There is a lot of cumbersome and unnecessary in unit testing in the RSPC for specifying both a reference and a kiss. For example:
reference 'type =: invalid' do (: type) {: invalid} this {hope} {subject}. Raise_error (ArgumentError)} End
If I can do something like this then it would be nice (Overall in many trials):
let_context Type: : Invalidate {hope {subject}. The rule will define a reference and the argument for more reference to me such as type =: invalid
or Let's (: type) {: invalid}
Because I have nothing else to say that this variable has been changed.
Comments
Post a Comment