Fix tests for new _finalize! changes

This commit is contained in:
Mitchell Hashimoto 2014-02-05 21:16:47 -08:00
parent f72db0c611
commit 86ede835ea
2 changed files with 3 additions and 3 deletions

View File

@ -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!

View File

@ -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!)