blob: 7e6680df6143dbfa2fd3752292a47c1921a73128 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require File.expand_path('../../../spec_helper', __FILE__)
describe "BasicObject#initialize" do
it "is a private instance method" do
BasicObject.should have_private_instance_method(:initialize)
end
it "does not accept arguments" do
lambda {
BasicObject.new("This", "makes it easier", "to call super", "from other constructors")
}.should raise_error(ArgumentError)
end
end
|