Sha256: c8936f84977407aa4fe0ce61d4fe1ec76675a4061cc8022d0c68cd3fba1c9c23
Contents?: true
Size: 779 Bytes
Versions: 28
Compression:
Stored size: 779 Bytes
Contents
require "#{File.dirname(__FILE__)}/../../../../test_helper" include_fixture_resources include_chef_only_resources class HttpResourceTest < Test::Unit::TestCase context "Base" do setup do PoolParty::Resource.define_resource_methods @res = PoolParty::Resources::HttpRequest.new "posting data", :url => "http://example.com/check_in", :message => {:some => "data"}, :action => :post @base = DependencyResolvers::Chef @base.compile_directory = test_dir end should "have the method denoted by has_method_name for http_request" do str =<<-EOE http_request "posting data" do action :post url "http://example.com/check_in" message :some => "data" end EOE assert_equal str, @base.compile(@res) end end end
Version data entries
28 entries across 28 versions & 3 rubygems