RSpec Outlines
Ever wanted cucumber-style scenario outlines in RSpec? Now you can with RSpec Outlines.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Ever wanted cucumber-style scenario outlines in RSpec? Now you can with RSpec Outlines.
Comments
I don’t know about others but to me that isn’t pretty at all. I’ve once thought about stuff like that but decided against it – it obfuscates without providing any real benefit: You could do that just as easily with simple loops.
The specific example of testing all parameter combinations is a bad one in retrospect, as there’s a valid argument that nested loops are better suited. There are many cases where I’ve wished in the past that I’d had this, however.
On further consideration, it’s actually the cases where you don’t want to test every combination, but enough of them that a loop would be unwieldy. Or when you want to manually specify the expected output to go with each set of inputs.
I think it is pretty well accepted from the cucumber and a pretty neat addition to rspec
Post a comment