Sha256: dd5c41f64fbcdae044eb29c247fa1ce8745feb059cdc4eadf19d633ba41c8060
Contents?: true
Size: 311 Bytes
Versions: 3
Compression:
Stored size: 311 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xommelier-0.1.30 | spec/support/schema_validatable.rb |
xommelier-0.1.29 | spec/support/schema_validatable.rb |
xommelier-0.1.28 | spec/support/schema_validatable.rb |