Sha256: c58fd47f8f04414a149e1b209fe1f2920a02b84f963c35502056eca48b051956

Contents?: true

Size: 696 Bytes

Versions: 28

Compression:

Stored size: 696 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::Package.new "debian-archive-keyring", :options => "--force-yes", :version => "1.16.1-1"
      @base = DependencyResolvers::Chef
      @base.compile_directory = test_dir
    end
    
    should "have the method denoted by has_method_name" do
      str =<<-EOE
package "debian-archive-keyring" do
  action :install
  options "--force-yes"
  version "1.16.1-1"
end
EOE

      assert_equal str.chomp, @base.compile(@res)
    end
    
  end
  
end

Version data entries

28 entries across 28 versions & 3 rubygems

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