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

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -