Sha256: 944bc6794ccfb89d5f453ef2731e21a1ff8b5ca88abdcd498685487d00f065c2

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Yardstick::Document, '#file' do
  subject { described_class.new(docstring).file }

  let(:docstring) { YARD::Registry.all(:method).first.docstring }
  let(:file)      { Yardstick::ROOT.join('lib', 'yardstick.rb') }

  before { YARD.parse([file.to_s], [], YARD::Logger::ERROR) }

  it { should be_kind_of(Pathname) }

  it { should == file }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yardstick-0.9.9 spec/integration/yardstick/document/file_spec.rb
yardstick-0.9.8 spec/integration/yardstick/document/file_spec.rb
yardstick-0.9.7 spec/integration/yardstick/document/file_spec.rb