Sha256: 0484c82a3a4bcd19e01632c6ccb988320127b9f7fcf1ee491b6f79ffa91bbe9d
Contents?: true
Size: 676 Bytes
Versions: 13
Compression:
Stored size: 676 Bytes
Contents
require 'test_helper' class RemoteFileLoaderTest < Test::Unit::TestCase include Sprout::TestHelper context "The remote file loader" do setup do @uri = 'http://github.com/downloads/lukebayes/project-sprouts/echochamber-test.zip' @file = File.join fixtures, 'remote_file_loader', 'md5', 'echochamber-test.zip' @md5 = 'd6939117f1df58e216f365a12fec64f9' # Don't reach out to the network for these tests: Sprout::RemoteFileLoader.stubs(:fetch).returns File.read @file end should "attempt to load a requested file" do bytes = Sprout::RemoteFileLoader.load @uri, @md5 assert_equal 310, bytes.size end end end
Version data entries
13 entries across 13 versions & 1 rubygems