Config::Loader will be the new class responsible for loading configuration and replaces the previous dual-role "Vagrant::Config" played. While this commit is very early-stage, once this new architecture is flushed out, it will make loading, using, and extending configuration much easier and cleaner. Additionally, I believe this will help post Vagrant 1.0 if multi-language configuration is implemented.
14 lines
429 B
Ruby
14 lines
429 B
Ruby
require File.expand_path("../../../base", __FILE__)
|
|
|
|
describe Vagrant::Config::Loader do
|
|
include_context "unit"
|
|
|
|
let(:instance) { described_class.new }
|
|
|
|
it "should raise proper error if there is a syntax error in a Vagrantfile" do
|
|
instance.load_order = [:file]
|
|
instance.set(:file, temporary_file("Vagrant:^Config"))
|
|
expect { instance.load }.to raise_exception(Vagrant::Errors::VagrantfileSyntaxError)
|
|
end
|
|
end
|