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

Version Path
auser-poolparty-1.3.0 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.1 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.10 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.11 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.12 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.13 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.2 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.3 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.4 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.5 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.6 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.7 test/lib/poolparty/resources/directory_test.rb
auser-poolparty-1.3.8 test/lib/poolparty/resources/directory_test.rb
fairchild-poolparty-1.3.5 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.8 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.7 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.6 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.4 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.3 test/lib/poolparty/resources/directory_test.rb
poolparty-1.3.1 test/lib/poolparty/resources/directory_test.rb