Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created March 15, 2012 22:01
Show Gist options
  • Save jfirebaugh/2047265 to your computer and use it in GitHub Desktop.
Save jfirebaugh/2047265 to your computer and use it in GitHub Desktop.
it "raises RuntimeError if frozen" do
obj = Object.new
obj.freeze
class << obj
lambda { def foo; end }.should raise_error(RuntimeError)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment