Sha256: cb7e4e670b05c199fb81baefe3cd4fa76e4eb096f0687beb7c5881425d3b2988
Contents?: true
Size: 858 Bytes
Versions: 7
Compression:
Stored size: 858 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' require 'pry' 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 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
7 entries across 7 versions & 1 rubygems