Sha256: 456bc60592af6cc893d1a537201944f26228c05a3a0017d9c3459488fbfba70e
Contents?: true
Size: 414 Bytes
Versions: 2
Compression:
Stored size: 414 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "helper")) class HeaderTestCase < QRToolsTestCase def setup img = QRTools::Image.load(File.join(ASSETS, '01-1.jpg')) decoder = QRTools::Decoder.decode(img) @header = decoder.header end %w{ model version level character_size byte_size }.each do |m| define_method(:"test_#{m}") do assert @header.send(:"#{m}") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qrtools-1.0.0 | test/test_header.rb |
qrtools-1.0.1 | test/test_header.rb |