Sha256: 2ca67813bd3f9bc86dcff744c8d0bb880480f0fca5c6a65aeb2d51139f58b801
Contents?: true
Size: 774 Bytes
Versions: 6
Compression:
Stored size: 774 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', '..', 'test_helper') class BaseDownloaderTest < Test::Unit::TestCase should "include the util class so subclasses have access to it" do assert Vagrant::Downloaders::Base.include?(Vagrant::Util) end context "base instance" do setup do @env = mock_environment @base = Vagrant::Downloaders::Base.new(@env) end should "implement prepare which does nothing" do assert_nothing_raised do assert @base.respond_to?(:prepare) @base.prepare("source") end end should "implement download! which does nothing" do assert_nothing_raised do assert @base.respond_to?(:download!) @base.download!("source", "destination") end end end end
Version data entries
6 entries across 6 versions & 2 rubygems