Sha256: 28d8c8167725fe5bb5a6a9568368f43a6fa5e5aa233abb0989ce66cbc194e9df
Contents?: true
Size: 573 Bytes
Versions: 83
Compression:
Stored size: 573 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/fixtures/classes' 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
83 entries across 83 versions & 1 rubygems