summaryrefslogtreecommitdiffhomepage
path: root/spec/code_objects/header_object_spec.rb
blob: 2e10a70425db7eed513eba0851b203af7d63d35c (plain)
1
2
3
4
5
6
7
8
9
10
require_relative 'spec_helper'

describe YARD::MRuby::CodeObjects::HeaderObject do
  before { Registry.clear }

  it "should return the name of the header for the path" do
    header_object = YARD::MRuby::CodeObjects::HeaderObject.new(nil, :"mruby.h")
    expect(header_object.path).to eq("mruby.h")
  end
end