Skip to content

Instantly share code, notes, and snippets.

@thommay
Created November 26, 2008 18:08
Show Gist options
  • Save thommay/29464 to your computer and use it in GitHub Desktop.
Save thommay/29464 to your computer and use it in GitHub Desktop.
it "should accept relative templatedirs" do
Puppet[:templatedir] = "my/templates"
File.expects(:directory?).with(File.join(Dir.getwd,"my/templates")).returns(true)
Puppet::Module.find_template("mytemplate").should == File.join(Dir.getwd,"my/templates/mytemplate")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment