Sha256: 1a4f7d886ec3596d9a6b652c852e842fba9cd55377364a7295ed5c2b5461190b
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/snapshot.rb # # Extracted Mon Jul 03 00:56:56 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/more/snapshot.rb' require 'test/unit' class TC_Snapshot < Test::Unit::TestCase def setup customer = Struct.new("Customer", :name, :address, :zip) joe = customer.new( "Joe Pitare", "1115 Lila Ln.", 47634 ) @joe_snap = joe.take_snapshot end def test_storage assert_equal( "Joe Pitare", @joe_snap[:name] ) assert_equal( "1115 Lila Ln.", @joe_snap[:address] ) assert_equal( 47634, @joe_snap[:zip] ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.4.4 | test/lib/facets/more/test_snapshot.rb |