Last active
August 29, 2020 21:53
-
-
Save codetombomb/21dd7560c86da191106ac8976c1fcfaa to your computer and use it in GitHub Desktop.
Initializing Cat instance with string name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'cat' | |
describe Cat do | |
it "is initialized with a name" do | |
cat = Cat.new("Wednesday") | |
expect(cat.name).to eq("Wednesday") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment