Sha256: 60939c87f16eb77034ef4a24863d28de935609e59557630eeba5fdb5e89b2995
Contents?: true
Size: 655 Bytes
Versions: 20
Compression:
Stored size: 655 Bytes
Contents
require "#{File.dirname(__FILE__)}/../../../test_helper" include_fixture_resources class DirectoryResourceTest < Test::Unit::TestCase context "Base" do setup do PoolParty::Resource.define_resource_methods @res = PoolParty::Resources::Directory.new "/etc/poolparty" @base = DependencyResolvers::Chef @base.compile_directory = test_dir end should "have the directory method denoted by has_method_name" do str = "directory \"/etc/poolparty\" do\n action :create\n recursive true\n mode 0644\n owner \"root\"\n group \"root\"\nend\n" assert_equal str, @base.compile(@res) end end end
Version data entries
20 entries across 20 versions & 3 rubygems