Sha256: 0e13c4232948fdb58489b82d3dc92a6e09593e8af4586036ef9c0e698bedfc6f

Contents?: true

Size: 659 Bytes

Versions: 8

Compression:

Stored size: 659 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

8 entries across 8 versions & 3 rubygems

Version Path
auser-poolparty-1.3.14 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.15 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.16 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.17 test/lib/poolparty/resources/directory_test.rb
fairchild-poolparty-1.3.17 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.15 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.14 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.13 test/lib/poolparty/resources/directory_test.rb