Sha256: 4509fa9a69b5c93377f075f174e11cbb2d1de560c8152f0a15a23f0b69fc4013
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
shared 'has standard integration support' do class << self INSIGNIFICANT_AND_UNMATCHABLE_PATTERNS = [ /^q\[\-?\d+\.?\d*( \-?\d+\.?\d*){5}\]concat\n$/, /^\d+\.?\d*( \d+\.?\d*){3} re\n$/ ] def data_file(file) File.join(File.dirname(__FILE__), 'data', file) end def template_doc(name) data_file("#{name}_example.odt") end def expected_pdf(name) data_file("#{name}_example.pdf") end def comparable_content(file) RGhost::Convert.new(file).to(:ps).read.grep(/^[^%][^%]?/). reject {|line| INSIGNIFICANT_AND_UNMATCHABLE_PATTERNS.any? {|regexp| regexp =~ line } } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clamsy-0.0.4 | spec/integration/has_stardand_integration_support_shared_spec.rb |