Posts Tagged: testing

Disabling Groups of RSpec Examples

During the process of updating the code, I thought it might be better to have a test suite that more closely matches our production code. I wanted the rspec command to be inclusive of all features in the production environment, but I didn’t want to remove the specs not being used since we may implement… Read more »

Shared Examples for Testing Session Links

When I was adding tests for user authentication, I noticed an opportunity to DRY up the code a little by moving some duplicate tests into a shared example group. The tests expect to find different links in the header depending on the whether or not a user was signed in: #partials_spec.rb shared_examples "it has signed… Read more »