Sha256: c07c803fe01596b360459e06411eb8be1dd3547f8c53145a11db7c63e474598e
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
# frozen_string_literal: true RSpec.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yard-0.9.18 | spec/core_ext/module_spec.rb |
yard-0.9.17 | spec/core_ext/module_spec.rb |