On RSpec 3 it’s far simpler:

pending if verifying_fixed?
find('#submit_button').value.should == 'RailsGoat h4x0r3d'

I believe transpec helps with this kind of thing. Have you tried following
our upgrade guide?

http://rspec.info/upgrading-from-rspec-2/
​


On Thu, Apr 14, 2016 at 2:04 PM, Al <[email protected]> wrote:

> I work on the OWASP Railsgoat project that is stuck at rspec 2.99.0 since
> "conditionally pending examples" were removed and
> <https://relishapp.com/rspec/rspec-core/v/2-6/docs/pending/pending-examples#conditionally-pending-examples>
> they are functional to the project.
> <https://relishapp.com/rspec/rspec-core/v/2-6/docs/pending/pending-examples#conditionally-pending-examples>Here
> is an example
>
>  * pending(:if => verifying_fixed?) { find('#submit_button').value.should
> == 'RailsGoat h4x0r3d' }
>
> You can see the code on GitHub at https://github.com/OWASP/railsgoat .
> How do I make it 3.x compatible?
>
> I know that "should" format will need to be upgraded to "expect" format.
>
> Thanks,
> Al
>
>
> <https://relishapp.com/rspec/rspec-core/v/2-6/docs/pending/pending-examples#conditionally-pending-examples>
>
> --
> You received this message because you are subscribed to the Google Groups
> "rspec" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rspec/4a2f66a7-367b-4277-a8c1-8bead38a6ad1%40googlegroups.com
> <https://groups.google.com/d/msgid/rspec/4a2f66a7-367b-4277-a8c1-8bead38a6ad1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"rspec" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rspec/CADUxQms%2BXTP7PzPEHp2j55Hg9%2B2AJTt3%3DZ8P2WO%2B9th2b%2Bbx%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to