Sha256: 37241b7ff69a40f79dd3e1455bb1b3409426ae55e80f975ad261a8f5fe6db79a
Contents?: true
Size: 672 Bytes
Versions: 4
Compression:
Stored size: 672 Bytes
Contents
require 'test_helper' class RemoteFileLoaderTest < Test::Unit::TestCase include SproutTestCase 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
4 entries across 4 versions & 1 rubygems