Skip to content

Commit

Permalink
Add anonymous module name spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix authored and eregon committed Sep 23, 2024
1 parent 5d53993 commit 4c3727c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/ruby/core/module/new_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
Module.new.is_a?(Module).should == true
end

it "creates a module without a name" do
Module.new.name.should be_nil
end

it "creates a new Module and passes it to the provided block" do
test_mod = nil
m = Module.new do |mod|
Expand Down

0 comments on commit 4c3727c

Please sign in to comment.