Skip to content

Instantly share code, notes, and snippets.

@sdball
Last active December 10, 2015 15:59
Show Gist options
  • Save sdball/4457945 to your computer and use it in GitHub Desktop.
Save sdball/4457945 to your computer and use it in GitHub Desktop.
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