Sha256: 52da810a84a9e686437d8fe290260c0fcbdc969f3b74dcbe35c5afeaa4ebc857
Contents?: true
Size: 503 Bytes
Versions: 52
Compression:
Stored size: 503 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) require File.expand_path('../fixtures/classes', __FILE__) describe "Module#method_removed" do it "is called when a method is removed from self" do begin Module.new do def self.method_removed(name) $method_removed = name end def test "test" end remove_method :test end $method_removed.should == :test ensure $method_removed = nil end end end
Version data entries
52 entries across 52 versions & 2 rubygems