Sha256: 0eb5a1a253a86fba9568139e3f1e0bdce51b55dfbdc6704ed3811099261a5573
Contents?: true
Size: 680 Bytes
Versions: 9
Compression:
Stored size: 680 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ | # |_|\___||___/\__| # # for lib/facets/snapshot.rb # # Extracted Mon Sep 03 16:23:08 -0700 2007 # w/ Test Extraction Ratchet # require 'facets/snapshot.rb' require 'test/unit' class TC_Snapshot < Test::Unit::TestCase def setup customer = Struct.new(: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
9 entries across 9 versions & 1 rubygems