Sha256: 06cc4fc1cf9a32dd9b16aaaf193ac76a96f469f9266a37f8b71d76f26d864d21
Contents?: true
Size: 686 Bytes
Versions: 20
Compression:
Stored size: 686 Bytes
Contents
require 'spec_helper' require 'puppet/pops' require_relative 'parser_rspec_helper' describe "egrammar parsing of capability mappings" do include ParserRspecHelper context "when parsing 'produces'" do it "raises syntax error" do expect { parse("Foo produces Sql { name => value }") }.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'produces' \(line: 1, column: 5\)/) end end context "when parsing 'consumes'" do it "raises syntax error" do expect { parse("Foo consumes Sql { name => value }") }.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'consumes' \(line: 1, column: 5\)/) end end end
Version data entries
20 entries across 20 versions & 1 rubygems