Respectable: scenario outlines for RSpec

12-Nov-2016 3094

Every so often I write an example in my specs that I'd like to run for several variations of input. As RSpec doens't support this workflow per se, I wrote the Respectable gem.Take for example the following case where we need to generate the full name for a user given a first and last name:

Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle