Sha256: 847fb21f89efb03ce7505cfcdadca8f9c0ca622a02842d29d773d23124131829

Contents?: true

Size: 649 Bytes

Versions: 3

Compression:

Stored size: 649 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'heartland_portico'
require 'heartland_portico/ach'

require 'pp'

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

module XmlFixtureHelpers
  def xml_fixture(file)
    File.read("spec/fixtures/#{file}.xml").tap { |xml|
      xml.gsub!(/>\s+</, '><')
      xml.gsub!(/<!--.*?-->/m, '')
      xml.strip!
    }
  end
end

RSpec.configure do |config|
  config.include XmlFixtureHelpers
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
heartland_portico-4.0.0 spec/spec_helper.rb
heartland_portico-3.2.6 spec/spec_helper.rb
heartland_portico-3.2.5 spec/spec_helper.rb