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

Popular posts from this blog

c++ - C/pp Sockets, recv()/send() works only under gdb -

GO: Serve static pages -

objective c - How to open front/back camera at the same time in iOS developing? -