spec/support/matchers.rb in vectory-0.3.0 vs spec/support/matchers.rb in vectory-0.4.0

- old
+ new

@@ -1,4 +1,16 @@ +RSpec::Matchers.define :be_eps do + match do |actual| + actual.start_with?("%!PS-Adobe-3.0") + end +end + +RSpec::Matchers.define :be_svg do + match do |actual| + actual.include?("<svg") + end +end + RSpec::Matchers.define :be_equivalent_eps_to do |expected| match do |actual| e = sub_time_and_version(expected) a = sub_time_and_version(actual)