Sha256: a4d4f567fab18aa6f5908fcf1e9ca33660e690098d6ac891d161b9419d35cd0c

Contents?: true

Size: 724 Bytes

Versions: 1

Compression:

Stored size: 724 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/kernel/set_from.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/kernel/set_from.rb'


  require 'test/unit'

  class TCKernel < Test::Unit::TestCase

    Customer = Struct.new( "Customer", :name, :address, :zip )

    def test_set_from
      bob = Customer.new("Bob Sawyer", "123 Maple, Anytown NC", 12345)
      joe = Customer.new("Joe Pitare")
      joe.set_from(bob, :address, :zip)
      assert_equal("Joe Pitare", joe.name)
      assert_equal("123 Maple, Anytown NC", joe.address)
      assert_equal(12345, joe.zip)  
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/core/kernel/test_set_from.rb