Friday, 15 June 2012

ruby - Rspec expected failure declaration -


Is there a way to indicate that an RSpec example is likely to fail?

In my code, a third party library contains an optional solution for a bug. I would like to include an investigation that there is a bug in the library. Although a general test can suggest to someone that the bug is the desired behavior, instead of checking the existing bug, I want to see that it does not exist, and mark it as a "expected failure".

Then if the bug is fixed later, then I will know and be able to solve.

Is there any way to do this in RSPC?

View the status of this example - As long as the expectations within the blocks fail Till it is greenish

  Describe "an example" is applied "but wait" is pending ("something else is happening") "This is a failure" and end  < / Pre>  

No comments:

Post a Comment