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