Supports `has_attribute?` on mock_model doubles

Forward port of rspec/rspec-rails#965