1 require File.dirname(__FILE__) + '/../spec_helper'
7 module LangModuleSpec::Sub2; end
10 it "has the right name" do
11 LangModuleSpec::Sub1.name.should == "LangModuleSpec::Sub1"
12 LangModuleSpec::Sub2.name.should == "LangModuleSpec::Sub2"
15 it "gets a name when assigned to a constant" do
17 LangModuleSpec::Anon = Module.new
20 LangModuleSpec::Anon.name.should == "LangModuleSpec::Anon"