Sha256: e162d94bc5eff1941bf738a540e85778997c5b1e0e64a324b5c20de8bae0dbc3
Contents?: true
Size: 494 Bytes
Versions: 58
Compression:
Stored size: 494 Bytes
Contents
describe "Missing constants" do it "should raise a NameError when trying to access an undefined constant" do lambda { ThisConstantDoesNotExist }.should raise_error(NameError) end it "raises an error for missing constants on base constant scope" do lambda { Object::SomeRandomObjectName }.should raise_error(NameError) end it "raises an error for missing constants on root constant scope" do lambda { ::YetAnotherMissingConstant }.should raise_error(NameError) end end
Version data entries
58 entries across 58 versions & 3 rubygems