use rspec-matchers ~> 3.1.0 for have_attributes matcher