Sha256: f3813ea5112c4b583f38036ae6b1b8b93dcffdaaf83ba40e7cc5b1289151b14b
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/more/snapshot.rb # # Extracted Tue Jul 25 10:07:15 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.7.0 | test/lib/facets/more/test_snapshot.rb |