Sha256: 0aa248688601bdc7a996ee0f41881427addc7be94701a6a390552fbc11a6fb9a

Contents?: true

Size: 811 Bytes

Versions: 20

Compression:

Stored size: 811 Bytes

Contents

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

include_fixture_resources

class ServiceResourceTest < Test::Unit::TestCase
  context "Base" do
    setup do
      PoolParty::Resource.define_resource_methods
      @res = PoolParty::Resources::Service.new "example_service", 
                                                :action => [:enable, :start],
                                                :supports => {:reload => true}
      @base = DependencyResolvers::Chef
      @base.compile_directory = test_dir
    end
    
    should "have the mount method denoted by has_method_name" do

str = <<-EOS
service "example_service" do
  pattern "example_service"
  action [ :enable, :start ]
  supports :reload => true
end
EOS

      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.10 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.11 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.12 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.13 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.14 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.15 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.16 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.17 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.5 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.6 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.7 test/lib/poolparty/resources/service_test.rb
auser-poolparty-1.3.8 test/lib/poolparty/resources/service_test.rb
fairchild-poolparty-1.3.17 test/lib/poolparty/resources/service_test.rb
fairchild-poolparty-1.3.5 test/lib/poolparty/resources/service_test.rb
poolparty-1.3.15 test/lib/poolparty/resources/service_test.rb
poolparty-1.3.14 test/lib/poolparty/resources/service_test.rb
poolparty-1.3.13 test/lib/poolparty/resources/service_test.rb
poolparty-1.3.8 test/lib/poolparty/resources/service_test.rb
poolparty-1.3.7 test/lib/poolparty/resources/service_test.rb
poolparty-1.3.6 test/lib/poolparty/resources/service_test.rb