core: fix Machine tests
This commit is contained in:
parent
8e9ceeaf5c
commit
40cbfb95e3
|
@ -41,7 +41,8 @@ describe Vagrant::Machine do
|
|||
# Returns a new instance with the test data
|
||||
def new_instance
|
||||
described_class.new(name, provider_name, provider_cls, provider_config,
|
||||
provider_options, config, data_dir, box, env)
|
||||
provider_options, config, data_dir, box,
|
||||
env, env.vagrantfile)
|
||||
end
|
||||
|
||||
describe "initialization" do
|
||||
|
@ -77,7 +78,8 @@ describe Vagrant::Machine do
|
|||
# Initialize a new machine and verify that we properly receive
|
||||
# the machine we expect.
|
||||
instance = described_class.new(name, provider_name, provider_cls, provider_config,
|
||||
provider_options, config, data_dir, box, env)
|
||||
provider_options, config, data_dir, box,
|
||||
env, env.vagrantfile)
|
||||
received_machine.should eql(instance)
|
||||
end
|
||||
|
||||
|
@ -110,6 +112,12 @@ describe Vagrant::Machine do
|
|||
end
|
||||
end
|
||||
|
||||
it "should have the vagrantfile" do
|
||||
provider_init_test do |machine|
|
||||
expect(machine.vagrantfile).to equal(env.vagrantfile)
|
||||
end
|
||||
end
|
||||
|
||||
it "should have access to the ID" do
|
||||
# Stub this because #id= calls it.
|
||||
provider.stub(:machine_id_changed)
|
||||
|
|
Loading…
Reference in New Issue