RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

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!

RSpec Outlines

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in