Sha256: 5d2c9a65f459af812c57dceaa720cfb56974d996dd930ee472e1f592098e8bd8
Contents?: true
Size: 731 Bytes
Versions: 80
Compression:
Stored size: 731 Bytes
Contents
require "test_helper" class ConfigVagrantTest < Test::Unit::TestCase setup do @config = Vagrant::Config::VagrantConfig.new end context "validation" do setup do @config.dotfile_name = "foo" @config.host = "foo" @errors = Vagrant::Config::ErrorRecorder.new end should "be valid with given set of values" do @config.validate(@errors) assert @errors.errors.empty? end should "be invalid with no dotfile" do @config.dotfile_name = nil @config.validate(@errors) assert !@errors.errors.empty? end should "be invalid with no host" do @config.host = nil @config.validate(@errors) assert !@errors.errors.empty? end end end
Version data entries
80 entries across 80 versions & 9 rubygems