Sha256: d4dce059c59f11b07d8fabb49a63b3a772ac94cc4471a41f3b7541701c6dd15c

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

require 'corefines'
require 'rspec/collection_matchers'
require 'simplecov'
require 'asciidoctor/doctest'
require 'fakefs/spec_helpers'

Dir['./spec/{shared_examples,support}/**/*.rb'].each { |file| require file }

RSpec.configure do |config|

  # rspec-expectations config
  config.expect_with :rspec do |expects|

    # This option disables deprecated 'should' syntax.
    expects.syntax = :expect

    # This option makes the +description+ and +failure_message+ of custom
    # matchers include text for helper methods defined using +chain+, e.g.:
    # be_bigger_than(2).and_smaller_than(4).description
    #   # => "be bigger than 2 and smaller than 4"
    # ...rather than:
    #   # => "be bigger than 2"
    expects.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  # rspec-mocks config
  config.mock_with :rspec do |mocks|

    # Prevents you from mocking or stubbing a method that does not exist on
    # a real object.
    mocks.verify_partial_doubles = true
  end

  config.color = true
end

def create_example(*args)
  DocTest::Example.new(*args)
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asciidoctor-doctest-2.0.0.beta.4 spec/spec_helper.rb
asciidoctor-doctest-2.0.0.beta.3 spec/spec_helper.rb
asciidoctor-doctest-2.0.0.beta.2 spec/spec_helper.rb
asciidoctor-doctest-2.0.0.beta.1 spec/spec_helper.rb