aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/module/initialize_copy_spec.rb
blob: 412f1c511b6b158bddf40401140162cd2eceb502 (plain)
1
2
3
4
5
6
7
8
9
10
require_relative '../../spec_helper'

describe "Module#initialize_copy" do
  it "should retain singleton methods when duped" do
    mod = Module.new
    def mod.hello
    end
    mod.dup.methods(false).should == [:hello]
  end
end