Sha256: 67db64d0091c989d7195c7bf1205bea256d47448324fb1c788da496325287f05

Contents?: true

Size: 539 Bytes

Versions: 9

Compression:

Stored size: 539 Bytes

Contents

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

include_fixture_resources

class VariableResourceTest < Test::Unit::TestCase
  context "Base" do
    setup do
      PoolParty::Resource.define_resource_methods
      @res = PoolParty::Resources::Variable.new "files", ["a_file", "b_file"]
      @base = DependencyResolvers::Chef
    end
    
    should "add the name and value as options on the variable instance" do
      assert_equal @res.name, "files"
      assert_equal @res.value, ["a_file", "b_file"]
    end
    
  end
  
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
auser-poolparty-1.3.0 test/lib/poolparty/resources/variable_test.rb
auser-poolparty-1.3.1 test/lib/poolparty/resources/variable_test.rb
auser-poolparty-1.3.2 test/lib/poolparty/resources/variable_test.rb
auser-poolparty-1.3.3 test/lib/poolparty/resources/variable_test.rb
auser-poolparty-1.3.4 test/lib/poolparty/resources/variable_test.rb
auser-poolparty-1.3.5 test/lib/poolparty/resources/variable_test.rb
poolparty-1.3.4 test/lib/poolparty/resources/variable_test.rb
poolparty-1.3.3 test/lib/poolparty/resources/variable_test.rb
poolparty-1.3.1 test/lib/poolparty/resources/variable_test.rb