RubyFlow The Ruby and Rails community linklog

Shared contexts in RSpec

On a recent project, I experimented with shared contexts to see if they could reduce boilerplate in the tests and was generally satisfied with the results, but also found a sneaky gotcha.

https://blog.polleverywhere.com/shared-contexts-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