blob: 306426881a51a1be7e69da74c916c6a488ab981a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require File.expand_path('../../../spec_helper', __FILE__)
describe "Module.allocate" do
it "returns an instance of Module" do
mod = Module.allocate
mod.should be_an_instance_of(Module)
end
it "returns a fully-formed instance of Module" do
mod = Module.allocate
mod.constants.should_not == nil
mod.methods.should_not == nil
end
end
|