Sha256: 999ff973b9ad75bab8db264123932a4d5ff5ad61777f2a81f2230a25b7daeb9c

Contents?: true

Size: 685 Bytes

Versions: 7

Compression:

Stored size: 685 Bytes

Contents

require 'spec_helper'

describe 'Credit Transfer Initiation' do
  it "should validate example file" do
    expect(File.read('spec/examples/pain.001.001.03.ch.02.xml'))
      .to validate_against('pain.001.001.03.ch.02.xsd')
  end

  it 'should not validate dummy string' do
    expect('foo').not_to validate_against('pain.001.001.03.ch.02.xsd')
  end
end

describe 'Direct Debit Initiation' do
  it 'should validate example file' do
    expect(File.read('spec/examples/pain.008.001.02.ch.03.xml'))
      .to validate_against('pain.008.001.02.ch.03.xsd')
  end

  it 'should not validate dummy string' do
    expect('foo').not_to validate_against('pain.008.001.02.ch.03.xsd')
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sps_king-0.5.0 spec/lib/sps_king/validation_spec.rb
sps_king-0.4.0 spec/lib/sps_king/validation_spec.rb
sps_king-0.3.1 spec/lib/sps_king/validation_spec.rb
sps_king-0.3.0 spec/lib/sps_king/validation_spec.rb
sps_king-0.2.0 spec/lib/sps_king/validation_spec.rb
sps_king-0.1.1 spec/lib/sps_king/validation_spec.rb
sps_king-0.1.0 spec/lib/sps_king/validation_spec.rb