Sha256: b18d6f79346c7dd4796b3cbb07f14b745e22178a574392e7666b8adad112329c

Contents?: true

Size: 446 Bytes

Versions: 3

Compression:

Stored size: 446 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:docstring) { YARD::Registry.all(:method).first.docstring }

  before do
    YARD.parse_string(<<-RUBY)
      module Foo
        class Bar
          # Instance method
          #
          # @api public
          def baz(value)
          end
        end
      end
    RUBY
  end

  it { should be(6) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

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