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

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