From 05966b889e84f58554979831118cce587c6235f9 Mon Sep 17 00:00:00 2001 From: l Date: Fri, 24 Jun 2011 12:25:58 +0200 Subject: fixed bug that caused a parse-error on lines containing = ( closes #1 ) --- spec/unit/provider/sudoers/parsed_spec.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'spec/unit/provider/sudoers') diff --git a/spec/unit/provider/sudoers/parsed_spec.rb b/spec/unit/provider/sudoers/parsed_spec.rb index 1bcdfae..28ab80d 100644 --- a/spec/unit/provider/sudoers/parsed_spec.rb +++ b/spec/unit/provider/sudoers/parsed_spec.rb @@ -115,5 +115,18 @@ describe Puppet::Type.type(:sudoers).provider(:parsed) do # test to_line end + + context "failing for commands containing =",:issue => 1 do + before do + @init_records = {:type => 'user_spec'} + end + + it "can parse users and hosts for lines containing =" do + line = "root ALL=(ALL) NOPASSWD: /bin/grep --color=auto example /var/log/messages" + lambda{ + @provider.parse_line(line) + }.should_not raise_error + end + end end -- cgit v1.2.3