Sha256: f713d57e10dc820d50f0bb74d6b6a9432f77b476a02e93e775790164a5b2c1bb

Contents?: true

Size: 1.02 KB

Versions: 20

Compression:

Stored size: 1.02 KB

Contents

require "#{File.dirname(__FILE__)}/../../../../test_helper"

include_fixture_resources
include_chef_only_resources

class RemoteDirectoryResourceTest < Test::Unit::TestCase
  context "Base" do
    setup do
      PoolParty::Resource.define_resource_methods
      @res = PoolParty::Resources::RemoteDirectory.new "/tmp/remote_something" do
        source "something"
        files_backup 10
        files_owner "root"
        files_group "root"
        files_mode "0644"
        owner "nobody"
        group "nobody"
        mode "0755"
      end
      @base = DependencyResolvers::Chef
      @base.compile_directory = test_dir
    end
    
    should "have the method denoted by has_method_name for remote_directory" do
      str =<<-EOE
remote_directory "/tmp/remote_something" do
  source "something"
  files_backup 10
  files_mode 0644
  action :create
  recursive false
  mode 0755
  owner "nobody"
  group "nobody"
  files_owner "root"
  files_group "root"
end
EOE

      assert_equal str.chomp, @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/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.1 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.10 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.11 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.12 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.13 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.2 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.3 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.4 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.5 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.6 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.7 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
auser-poolparty-1.3.8 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
fairchild-poolparty-1.3.5 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
poolparty-1.3.8 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
poolparty-1.3.7 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
poolparty-1.3.6 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
poolparty-1.3.4 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
poolparty-1.3.3 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb
poolparty-1.3.1 test/lib/dependency_resolvers/chef/resources/remote_directory_test.rb