Skip to content

Instantly share code, notes, and snippets.

@codetombomb
Last active August 29, 2020 21:53
Show Gist options
  • Save codetombomb/21dd7560c86da191106ac8976c1fcfaa to your computer and use it in GitHub Desktop.
Save codetombomb/21dd7560c86da191106ac8976c1fcfaa to your computer and use it in GitHub Desktop.
Initializing Cat instance with string name
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