spec/support/schema_validatable.rb in xommelier-0.1.31 vs spec/support/schema_validatable.rb in xommelier-0.1.32

- old
+ new

@@ -5,13 +5,13 @@ # Author: Alexander Semyonov <al@semyonov.us> # ################################################ require 'rspec' shared_examples 'Valid XML Document' do - it { subject.class.schema.should be_present } + it { expect(subject.class.schema).to be_present } specify do begin - should be_valid + is_expected.to be_valid rescue RSpec::Expectations::ExpectationNotMetError => e puts subject.to_xml puts subject.schema_validation_errors raise e end