Sha256: 645051c3897d177584955436e50718f3aaa3e0660395dd50c3c9397609b0d1e8

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

module Doctest::RSpec

  module DoctestHelpers

    def doctest(source)
      context "doctests for #{source}" do
        Doctest::Core.extract_from(source).each do |doctest|
          it "at #{doctest.original_file}:#{doctest.line}" do
            expect(doctest).to be_a_valid_doctest
          end
        end
      end
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doctest-rspec-0.0.3 lib/doctest/rspec/doctest_helpers.rb