Sha256: 0ef371a4a9853eeb88cda153e8c64d395018cf54a962c7f1ced22ab0d6762b6e
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
###### ##### #### ###### ## ## ## ## ## #### ## ## ## ## ## ## ## ##### #### ## require 'test/unit' require 'mega/snapshot' 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 |
---|---|
mega-0.3.1 | test/tc_snapshot.rb |