summaryrefslogtreecommitdiff
path: root/spec/ruby/core/module/new_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/module/new_spec.rb')
-rw-r--r--spec/ruby/core/module/new_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/module/new_spec.rb b/spec/ruby/core/module/new_spec.rb
index da7f3b8720..ec7a0cfa77 100644
--- a/spec/ruby/core/module/new_spec.rb
+++ b/spec/ruby/core/module/new_spec.rb
@@ -6,6 +6,10 @@ describe "Module.new" do
Module.new.is_a?(Module).should == true
end
+ it "creates a module without a name" do
+ Module.new.name.should == nil
+ end
+
it "creates a new Module and passes it to the provided block" do
test_mod = nil
m = Module.new do |mod|