refactor specs using shoulda-matchers