Sha256: 602de4913bc811d4fc077fa96e069e1bf44d3ff10659da0336ee3e5cb59f735f
Contents?: true
Size: 515 Bytes
Versions: 2
Compression:
Stored size: 515 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "helper")) class ImageTestCase < QRToolsTestCase def test_load assert img = QRTools::Image.load(File.join(ASSETS, '01-1.jpg')) end def test_save filename = File.join(Dir::tmpdir, 'out.jpg') img = QRTools::Image.load(File.join(ASSETS, '01-1.jpg')) assert img.save(filename) assert File.exist?(filename) end def test_to_nsimage img = QRTools::Image.load(File.join(ASSETS, '01-1.jpg')) assert img.to_nsimage end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qrtools-1.0.0 | test/test_image.rb |
qrtools-1.0.1 | test/test_image.rb |