Skip to content

Instantly share code, notes, and snippets.

@sdball
Last active Dec 10, 2015
Embed
What would you like to do?
Don't Do What Johnny Don't Does
class FiatNil
def method_missing(*args)
nil
end
end
require_relative 'fiat_nil'
describe "FiatNil" do
it "should fail silently, horribly" do
nil.strip.should be_nil
end
it "said, let there be nil. and it was bad" do
nil.all.the.way.down.should be_nil
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment