Sha256: 6d4faec2b4de0432b2c2c7bdb174476ab9128957579e41e03c1636de963097e0

Contents?: true

Size: 424 Bytes

Versions: 3

Compression:

Stored size: 424 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe Module do
  describe '#class_name' do
    it "should return just the name of the class/module" do
      YARD::CodeObjects::Base.class_name.should == "Base"
    end
  end

  describe '#namespace' do
    it "should return everything before the class name" do
      YARD::CodeObjects::Base.namespace_name.should == "YARD::CodeObjects"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deg-yard-0.8.7.4 spec/core_ext/module_spec.rb
deg-yard-0.8.7.3 spec/core_ext/module_spec.rb
deg-yard-0.8.7.1 spec/core_ext/module_spec.rb