Sha256: 6ad514a00a90f10dbbc3c7b132b820eae977763a9aa191ec7992e1f84fff6353
Contents?: true
Size: 889 Bytes
Versions: 3
Compression:
Stored size: 889 Bytes
Contents
require 'test_helper' module Mirrors class PackageInferenceTest < MiniTest::Test def test_core assert_equal('core', PackageInference.infer_from(Object)) assert_equal('core', PackageInference.infer_from(Errno::EAGAIN)) end def test_stdlib require 'digest' assert_equal('core:stdlib', PackageInference.infer_from(Digest)) assert_equal('core:stdlib', PackageInference.infer_from(Digest::SHA256)) end def test_gems assert_equal('gems:minitest', PackageInference.infer_from(MiniTest)) assert_equal('gems:minitest', PackageInference.infer_from(MiniTest::Test)) end def test_application assert_equal('application', PackageInference.infer_from(Mirrors)) end def test_unknown_eval eval('class Unknown; end') assert_equal('unknown:eval', PackageInference.infer_from(Unknown)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mirrors-0.0.3 | test/mirrors/package_inference_test.rb |
mirrors-0.0.2 | test/mirrors/package_inference_test.rb |
mirrors-0.0.1 | test/mirrors/package_inference_test.rb |