Sha256: fc3d194dfdc8dd70b7782fa170e41e8e303aff5c84c2b35a4e995f0d0e199cf8

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

require 'xezat/detectors'

module Xezat::Test::Detector
  class HalibutTest < Test::Unit::TestCase
    include Xezat::Detector
    include Xezat

    def setup
      @detector = DetectorManager[:halibut]
    end

    def test_yes_root
      assert_true(@detector.detect({S: File::join(File::dirname(__FILE__), 'fixture', 'halibut', 'yes_root')}))
    end

    def test_yes_subdir
      assert_true(@detector.detect({S: File::join(File::dirname(__FILE__), 'fixture', 'halibut', 'yes_subdir')}))
    end

    def test_no
      assert_false(@detector.detect({S: File::join(File::dirname(__FILE__), 'fixture', 'halibut', 'no')}))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xezat-0.0.4 test/xezat/detector/test_halibut.rb