Even better use the built-in matcher from rspec-rails (e.g. https://github.com/alphagov/fact-cave/blob/master/spec/models/fact_spec.rb#L14)