Sha256: 2428ee2d100dac6e565d554a0c2a78afc7bb38014b893972e97c3a6ae92bd9cb
Contents?: true
Size: 890 Bytes
Versions: 3
Compression:
Stored size: 890 Bytes
Contents
require 'test/unit' require 'lib/rapinoe' include Rapinoe class TestSlide < Test::Unit::TestCase def setup @keynote = Keynote.new('test/fixtures/ice-cream.key') @slide = @keynote.slides.first end def test_preview_data assert_equal 1484, @slide.preview_data.size end def test_write_preview_to_file tempfile = "/tmp/rapinoe-slide-preview.jpg" refute File.exist?(tempfile) @slide.write_preview_to_file(tempfile) assert File.exist?(tempfile) assert_operator File.size(tempfile), :>, 1484 ensure File.delete tempfile end def test_write_preview_to_new_dir_and_file tempfile = "/tmp/rapinoe/rapinoe-slide-preview.jpg" refute File.exist?(tempfile) @slide.write_preview_to_file(tempfile) assert File.exist?(tempfile) assert_operator File.size(tempfile), :>, 1484 ensure FileUtils.rm_rf "/tmp/rapinoe" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rapinoe-0.0.4 | test/test_slide.rb |
rapinoe-0.0.3 | test/test_slide.rb |
rapinoe-0.0.2 | test/test_slide.rb |