Live data from Hacker News

Spec-me-maybe: Introduces the “maybe” syntax to RSpec

github.com

1–10 of 42 posts

Re: Spec-me-maybe: Introduces the “maybe” syntax to RSpec

#8
While this is obviously a joke, I can see it having a limited amount of practical value. Imagine, for example, being tasked with updating a poorly-maintained legacy code base with a large number of indeterminately failing specs containing order dependencies. You could `RSpec::Maybe` everything until you're sure you have the order dependencies resolved, then convert to regular `RSpec::Expectation`s.

Re: Spec-me-maybe: Introduces the “maybe” syntax to RSpec

#10
post #8

While this is obviously a joke, I can see it having a limited amount of practical value. Imagine, for example, being tasked with updating a poorly-maintained legacy code base with a large number of indeterminately failing specs containing order dependencies. You could `RSpec::Maybe` everything until you're sure you have the order dependencies resolved, then convert to regular `RSpec::Expectation`s.

That's the usecase of `pending`
Post reply on HN