Search code examples
rubyunit-testingrspeccucumberminitest

Cucumber-like table steps in rspec/minitest?


I was wondering if there was anything out there to help me input tabular test vectors into my rspec and/or minitest tests? Like the tables you can have in Cucumber steps.


Solution

  • Since you don't use Cucumber, I suppose people who read your code will be you or peer developers.

    In this case you are free to use Array or Hash or %w{} tags to represent the "table" in cucumber, they are much cleaner than "table" in developers' eyes.