Sha256: df75ddcf3feba42c1fb87ff3283a2319240880f77a6535d231b713cebf4ac467
Contents?: true
Size: 471 Bytes
Versions: 11
Compression:
Stored size: 471 Bytes
Contents
# Test lib/facets/snapshot.rb 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
11 entries across 11 versions & 1 rubygems