Refactor a dog_spec.rb to use described_class