Sha256: 2e06f2c9a24db69372096b278a646cd8767f344782a3a725315f47a151a39b60
Contents?: true
Size: 860 Bytes
Versions: 40
Compression:
Stored size: 860 Bytes
Contents
require File.expand_path("../../base", __FILE__) describe Vagrant::Box do let(:name) { "foo" } let(:directory) { "bar" } let(:action_runner) { double("action_runner") } let(:instance) { described_class.new(name, directory, action_runner) } it "provides the name" do instance.name.should == name end it "can destroy itself" do # Simply test the messages to the action runner options = { :box_name => name, :box_directory => directory } action_runner.should_receive(:run).with(:box_remove, options) instance.destroy end it "can repackage itself" do # Simply test the messages to the action runner options = { :box_name => name, :box_directory => directory } action_runner.should_receive(:run).with(:box_repackage, options) instance.repackage end end
Version data entries
40 entries across 40 versions & 6 rubygems