Sha256: 2192f27f1a351dbc4661a4a140e1db8e2d38f59f7543daf9ae29fd2975831eab

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

# coding: utf-8

################################################
# © Alexander Semyonov, 2011—2013, MIT License #
# Author: Alexander Semyonov <al@semyonov.us>  #
################################################

require 'rspec'
shared_examples 'Valid XML Document' do
  it { subject.class.schema.should be_present }
  specify do
    begin
      should be_valid
    rescue RSpec::Expectations::ExpectationNotMetError => e
      puts subject.to_xml
      puts subject.schema_validation_errors
      raise e
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xommelier-0.1.31 spec/support/schema_validatable.rb