Sha256: 44cdfb6ad813c8c4828a04ad67848e9ddd851659fe855143dd144f1ca343c1be

Contents?: true

Size: 619 Bytes

Versions: 3

Compression:

Stored size: 619 Bytes

Contents

require 'spec_helper'

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

  it 'should not validate dummy string' do
    'foo'.should_not validate_against('pain.001.002.03.xsd')
  end
end

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

  it 'should not validate dummy string' do
    'foo'.should_not validate_against('pain.008.002.02.xsd')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sepa_king-0.0.7 spec/validation_spec.rb
sepa_king-0.0.6 spec/validation_spec.rb
sepa_king-0.0.5 spec/validation_spec.rb