Skip to content

Instantly share code, notes, and snippets.

@sdball
Last active December 10, 2015 15:59
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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