Sha256: 8fac291b4a157284547c0e67b87f8322012863d59878e677e318f523927257e7

Contents?: true

Size: 673 Bytes

Versions: 3

Compression:

Stored size: 673 Bytes

Contents

require 'test/unit'
require 'spider-src'

class TestSpiderSrc < Test::Unit::TestCase
  def test_gem_version
    assert { Spider::Src::VERSION.kind_of?(String) }
  end

  def test_version
      assert { Spider::Src.version.kind_of?(String) }
    end

    def test_package_json_path
      assert { Spider::Src.package_json_path.file? }
    end

    def test_license_path
      assert { Spider::Src.license_path.file? }
    end

    def test_spider_path
      assert { Spider::Src.spider_path.directory? }
    end

    def test_js_path
      assert { Spider::Src.js_path.file? }
    end

    def test_js_content
      assert { Spider::Src.js_content.length > 0 }
    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spider-src-0.1.7 test/test_spider_src.rb
spider-src-0.1.6 test/test_spider_src.rb
spider-src-0.1.5 test/test_spider_src.rb