Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There's a test missing in the spec/controllers/application_controller_spec.rb file. #29

Closed
Sdcrouse opened this issue Jun 17, 2019 · 1 comment

Comments

@Sdcrouse
Copy link

Hi. This lesson is really good, but I noticed that there was a test missing. There should be a test that checks for whether you can change the dog's breed. Something like this:

describe ApplicationController do
  describe 'Dog class' do
    ...
    # Maybe put this between the tests that check for changing the dog's name and age:
    it 'can change dog breed' do
      @dog = Dog.new("rudolph", "mastiff", 2)
      @dog.breed = "beagle"
      expect(@dog.breed).to eq("beagle")
    end
    ...
  end
end

Thanks as always for looking into this!

Sdcrouse

@drakeltheryuujin
Copy link

Thank you for spotting this issue and providing feedback!
We have updated the materials and believe your issue to have been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants