use rspec-expectations ~> 3.1.0 for have_attributes matcher