RSpec - Use shared_examples to avoid duplicate test examples
It's common to see a before_action method that need executing in different controller actions. At the same time, when writing RSpec tests for these actions, it's easily to write down context blocks whose test examples are almost the same, and only a ...
Aug 1, 20214 min read33
