Skip to content

Conversation

@yuriyivanenko
Copy link

Create Cat class with all necessary methods


describe "Cat" do
let(:maru) { Cat.new } # Look up what let does in RSpec
let(:maru) { Cat.new('Maru') } # Look up what let does in RSpec

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't need to change the test here.

Comment on lines +5 to +7
def initialize(name)
@name = name
end

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no need for an initializer here since the Cat is never initialized with a name in the tests (besides where you updated it).

Suggested change
def initialize(name)
@name = name
end

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

Successfully merging this pull request may close these issues.

2 participants