summaryrefslogtreecommitdiff
path: root/spec/ruby/library/singleton/dup_spec.rb
blob: 16fe147f266805accad983a97c405243bb37aa9f (plain)
1
2
3
4
5
6
7
8
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)

describe "Singleton#dup" do
  it "is prevented" do
    lambda { SingletonSpecs::MyClass.instance.dup }.should raise_error(TypeError)
  end
end