Change soft-fail to use the config, rather than env
[rbx.git] / spec / frozen / 1.8 / language / module_spec.rb
blob7c2978bd4b8780184807dc194cdc445eabe6b2c0
1 require File.dirname(__FILE__) + '/../spec_helper'
3 module LangModuleSpec
4   module Sub1; end
5 end
7 module LangModuleSpec::Sub2; end
9 describe "module" do
10   it "has the right name" do
11     LangModuleSpec::Sub1.name.should == "LangModuleSpec::Sub1"
12     LangModuleSpec::Sub2.name.should == "LangModuleSpec::Sub2"
13   end
15   it "gets a name when assigned to a constant" do
16     m = Module.new
17     LangModuleSpec::Anon = Module.new
19     m.name.should == ""
20     LangModuleSpec::Anon.name.should == "LangModuleSpec::Anon"
21   end
22 end