Skip to content

Instantly share code, notes, and snippets.

# Please write *complete* RSpec tests for each of the following make_maru methods.
# - Each example assumes a different interface to Kitten.new
# - #set_name is an instance method, defined ONLY on the Kitten class
# - #make_maru must *always* return the kitten instance
# Example 1
def make_maru
kitten = Kitten.new
kitten.set_name('Maru')
kitten