Skip to content

Commit

Permalink
make the unit test better by checking before and after
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarod committed May 8, 2015
1 parent 70209a0 commit 5a87fbf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/unit/puppet/provider/pam/augeas_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@

describe "when reodering settings" do
it "Changing the order of an entry" do
aug_open(target, "Pam.lns") do |aug|
expect(aug.get("./2/module")).to eq("pam_unix.so")
end

apply!(Puppet::Type.type(:pam).new(
:title => "Change the order of pam_unix.so",
:service => "system-auth",
Expand Down

0 comments on commit 5a87fbf

Please sign in to comment.