DRYed up rspec tests