Skip to content

Instantly share code, notes, and snippets.

@faloi
Created October 15, 2014 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faloi/369bcfc071ad29ae96f0 to your computer and use it in GitHub Desktop.
Save faloi/369bcfc071ad29ae96f0 to your computer and use it in GitHub Desktop.
it "puede crear metodos para mensajes faltantes en todos los descendientes" do
Salchicha = Class.new(Perro)
lassie = Perro.new
lassie.ladrar
lassie.ladrar
Perro.crear_metodos_para_mensajes_faltantes(2)
expect(lassie.ladrar).to eq("Soy un Perro y me estan enviando el mensaje ladrar")
expect(Salchicha.new.ladrar).to eq("Soy un Salchicha y me estan enviando el mensaje ladrar")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment