diff options
author | Matthaus Litteken <mlitteken@gmail.com> | 2011-08-10 16:16:20 -0700 |
---|---|---|
committer | Matthaus Litteken <mlitteken@gmail.com> | 2011-08-10 16:16:20 -0700 |
commit | 9202f636f5c3371fa801d1daf46f2cda401e7a90 (patch) | |
tree | a7a9817e6263c78161cfeac28a1a45d21bc750df /spec | |
parent | 9834ac9300528a6de203cec66c5defd272b72a6b (diff) | |
parent | 7aecf1a8b343a3f38bb77055b3042968ad3a92c3 (diff) |
Please pull to fix the bug described in issue 2
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/provider/sudoers/parsed_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/unit/provider/sudoers/parsed_spec.rb b/spec/unit/provider/sudoers/parsed_spec.rb index 1bcdfae..ace181e 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 => 2 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 |