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