Sha256: 94404160057bcf619a43de47b515b64b23b06be3f6b083b0b374c30dd91ec2ab

Contents?: true

Size: 406 Bytes

Versions: 8

Compression:

Stored size: 406 Bytes

Contents

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

describe Module do
  describe "#class_name" do
    it "returns just the name of the class/module" do
      expect(YARD::CodeObjects::Base.class_name).to eq "Base"
    end
  end

  describe "#namespace" do
    it "returns everything before the class name" do
      expect(YARD::CodeObjects::Base.namespace_name).to eq "YARD::CodeObjects"
    end
  end
end

Version data entries

8 entries across 7 versions & 2 rubygems

Version Path
abaci-0.3.0 vendor/bundle/gems/yard-0.9.2/spec/core_ext/module_spec.rb
abaci-0.3.0 vendor/bundle/gems/yard-0.9.1/spec/core_ext/module_spec.rb
yard-0.9.5 spec/core_ext/module_spec.rb
yard-0.9.4 spec/core_ext/module_spec.rb
yard-0.9.3 spec/core_ext/module_spec.rb
yard-0.9.2 spec/core_ext/module_spec.rb
yard-0.9.1 spec/core_ext/module_spec.rb
yard-0.9.0 spec/core_ext/module_spec.rb