Sha256: ff4f50dea51650aba69f7352e47d372942edbdae08bed5e3c481696e5d4d2b79

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

#
# File::           test_PNGProcessor.rb
# Author::         wkm
# Copyright::      2009
# License::        GPL
#
# Unit tests for the PNGProcessor
#

$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')

require 'test/unit'
require 'sitefuel/processors/PNGProcessor'

include SiteFuel::Processor

class TestPNGProcessor < Test::Unit::TestCase
  def test_file_extensions
    assert_equal false, PNGProcessor.processes_file?("testpng")

    assert PNGProcessor.processes_file?("test.png")
    assert PNGProcessor.processes_file?("test.PNG")
  end

  def test_name
    assert_equal 'PNG', PNGProcessor.processor_name
  end

  def test_crush
    PNGProcessor.process_file('test/test_images/sample_png01.png')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sitefuel-0.0.0b test/test_PNGProcessor.rb
sitefuel-0.0.0a test/test_PNGProcessor.rb