Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions spec/opal/core/module/name_spec.rb
Original file line number Diff line number Diff line change
@@ -32,21 +32,4 @@ class B
ModuleNameSpec::A.name.should == "ModuleNameSpec::A"
ModuleNameSpec::A::B.name.should == "ModuleNameSpec::A::B"
end

it "uses just child name when class set inside anonymous parent" do
a = Class.new
b = Class.new
a.const_set :Child, b
b.name.should == "Child"
end

it "uses parent name once parent anonymous class gets name" do
a = Class.new
b = Class.new
a.const_set :Child, b
b.name.should == "Child"

ModuleNameSpec.const_set :Parent, a
b.name.should == "ModuleNameSpec::Parent::Child"
end
end

0 comments on commit 0a8be0d

Please sign in to comment.