Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "should fail an invalid file path" do
- File.stubs(:exists?).returns(:false)
- File.expects(:exists?)
- expect { described_class.new(:domainname => 'domain', :passwordfile => '/tmp/nonexistent') }.to raise_error(Puppet::Error, /does not exist/)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement