Fix tests for new _finalize! changes
This commit is contained in:
parent
f72db0c611
commit
86ede835ea
|
@ -22,7 +22,7 @@ describe Vagrant::Config::V2::Loader do
|
|||
# Register a plugin for our test
|
||||
register_plugin("2") do |plugin|
|
||||
plugin.config "foo" do
|
||||
Class.new do
|
||||
Class.new(Vagrant.plugin("2", "config")) do
|
||||
attr_accessor :bar
|
||||
|
||||
def finalize!
|
||||
|
|
|
@ -43,7 +43,7 @@ describe Vagrant::Config::V2::Root do
|
|||
|
||||
describe "#finalize!" do
|
||||
it "should call #finalize!" do
|
||||
foo_class = Class.new do
|
||||
foo_class = Class.new(Vagrant.plugin("2", "config")) do
|
||||
attr_accessor :foo
|
||||
|
||||
def finalize!
|
||||
|
@ -59,7 +59,7 @@ describe Vagrant::Config::V2::Root do
|
|||
end
|
||||
|
||||
it "should call #_finalize!" do
|
||||
klass = Class.new
|
||||
klass = Class.new(Vagrant.plugin("2", "config"))
|
||||
|
||||
klass.any_instance.should_receive(:finalize!)
|
||||
klass.any_instance.should_receive(:_finalize!)
|
||||
|
|
Loading…
Reference in New Issue