Rewrites tests using shoulda-matchers