Sha256: 63349bceac8e29ee6be29bd5e1c9bae8cc8e478c177657f52ec457f82f91d1e1
Contents?: true
Size: 890 Bytes
Versions: 12
Compression:
Stored size: 890 Bytes
Contents
require "test_helper" module Torba class NpmTest < Minitest::Test def remote RemoteSources::Npm.new("coffee-script", "2.0.0") end def test_package assert_equal "coffee-script", remote.package end def test_tag assert_equal "2.0.0", remote.version end def test_url assert_equal "https://registry.npmjs.org/coffee-script/-/coffee-script-2.0.0.tgz", remote.url end def test_unique_digest remote = RemoteSources::Npm.new("coffee-script", "2.0.0") same_remote = RemoteSources::Npm.new("coffee-script", "2.0.0") assert_equal remote.digest, same_remote.digest another_remote = RemoteSources::Npm.new("coffee-script", "2.0.1") refute_equal remote.digest, another_remote.digest end def test_digest_contains_repository_name assert_match /^coffee-script-/, remote.digest end end end
Version data entries
12 entries across 12 versions & 1 rubygems