spec/lib/taketo/config_validator_spec.rb in taketo-0.1.3 vs spec/lib/taketo/config_validator_spec.rb in taketo-0.2.0.alpha
- old
+ new
@@ -16,10 +16,10 @@
end
describe "ConfigValidator::ConfigValidatorVisitor" do
subject(:visitor) { ConfigValidator::ConfigValidatorVisitor.new }
- { :Config => nil, :Project => "my_project" }.each do |node_type, path|
+ { :Config => nil, :Project => "my_project", :Group => "my_group" }.each do |node_type, path|
it "requires #{node_type} to have servers" do
node = stub(node_type, :has_servers? => false, :path => path)
error_message = /#{path ? path + ": " : ""}no servers/
expect { visitor.send("visit_#{node_type.to_s.downcase}", node) }.to raise_error ConfigError, error_message