Sha256: 3f057f1de92626477a10082cf4303b74f58a8e3223216a52f1376ec36bedf9be

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

require File.dirname(__FILE__) + '/../test_helper'

class ChocolateDiscoTest < Test::Unit::TestCase
  
  def setup
  end # def setup
  
  def teardown
  end # def teardown
  
  context 'bin/chocolate_disco(.bat)' do
    
    should 'exist' do
      
      # for the *NIX systems.
      path = chocolate_disco_root(%w(bin chocolate_disco))
      assert(File.exists?(path) && File.file?(path) && !File.directory?(path), 'not found')
      assert(File.executable?(path), 'is not executable')
      
      # TODO: for the Windows-like systems.
      
    end
    
    should 'have more tests' do
      flunk('TODO')
    end
    
  end
  
  context 'Chocolate Disco' do
    
    should 'have tests' do
      flunk('TODO')
    end
    
    ["application/vnd.visio", "application/pdf", "text/html", "text/xml", "application/vnd.ms-excel", "application/vnd.openxmlformats ", "text", "application/rtf", "application/vnd.ms-powerpoint", "application/msword"].each do |mime|
      
      should "support #{mime}" do
        assert(ChocolateDisco.supported?(:mime => mime))
      end
      
    end # [mime, ...].each do |mime|
    
  end
  
end # class ChocolateDiscoTest < Test::Unit::TestCase

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hirobumi-chocolate_disco-jruby-0.1.4 test/unit/chocolate_disco_test.rb
hirobumi-chocolate_disco-jruby-0.1.5 test/unit/chocolate_disco_test.rb