Sha256: 8a0fa04b5ac237be29e3abecffc70cc2f287a773287bc1e84fe405761518b88f
Contents?: true
Size: 773 Bytes
Versions: 12
Compression:
Stored size: 773 Bytes
Contents
require "test_helper" module Torba class ZipTest < Minitest::Test def test_url remote = RemoteSources::Zip.new("http://jquery.com/jquery.zip") assert_equal "http://jquery.com/jquery.zip", remote.url end def test_unique_digest remote = RemoteSources::Zip.new("http://jquery.com/jquery.zip") same_remote = RemoteSources::Zip.new("http://jquery.com/jquery.zip") assert_equal remote.digest, same_remote.digest another_remote = RemoteSources::Zip.new("http://angularjs.com/angular.zip") refute_equal remote.digest, another_remote.digest end def test_digest_contains_filename remote = RemoteSources::Zip.new("http://jquery.com/jquery.zip") assert_match /^jquery-/, remote.digest end end end
Version data entries
12 entries across 12 versions & 1 rubygems