Sha256: 8b715f9054b3422d9b155d89bbeee3282c017ca13f033623ed43008c4e2e2ba4

Contents?: true

Size: 982 Bytes

Versions: 31

Compression:

Stored size: 982 Bytes

Contents

require 'simplecov'
SimpleCov.start do
  add_filter '/spec/'
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rspec'
require 'format_parser'

module SpecHelpers
  def fixtures_dir
    __dir__ + '/fixtures/'
  end
end

RSpec.configure do |c|
  c.include SpecHelpers
  c.extend SpecHelpers # makes fixtures_dir available for example groups too
  # https://relishapp.com/rspec/rspec-core/docs/command-line/only-failures
  c.example_status_persistence_file_path = 'spec/examples.txt'
end

RSpec.shared_examples 'an IO object compatible with IOConstraint' do
  it 'responds to the same subset of public instance methods' do
    requisite_methods = FormatParser::IOConstraint.public_instance_methods - Object.public_instance_methods
    requisite_methods.each do |requisite|
      expect(described_class.public_instance_methods).to include(requisite), "#{described_class} must respond to #{requisite}"
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
format_parser-2.0.0.pre spec/spec_helper.rb
format_parser-1.7.0 spec/spec_helper.rb
format_parser-1.6.0 spec/spec_helper.rb
format_parser-1.5.0 spec/spec_helper.rb
format_parser-1.4.2 spec/spec_helper.rb
format_parser-1.4.1 spec/spec_helper.rb
format_parser-1.4.0 spec/spec_helper.rb
format_parser-1.3.0 spec/spec_helper.rb
format_parser-1.2.1 spec/spec_helper.rb
format_parser-1.2.0 spec/spec_helper.rb
format_parser-1.1.0 spec/spec_helper.rb
format_parser-1.0.0 spec/spec_helper.rb
format_parser-0.29.1 spec/spec_helper.rb
format_parser-0.29.0 spec/spec_helper.rb
format_parser-0.28.0 spec/spec_helper.rb
format_parser-0.27.0 spec/spec_helper.rb
format_parser-0.26.0 spec/spec_helper.rb
format_parser-0.25.6 spec/spec_helper.rb
format_parser-0.25.5 spec/spec_helper.rb
format_parser-0.25.4 spec/spec_helper.rb