Sha256: fe1b59d3d5f9952a678eb161d12e45499cb1316e0daf11fb9505ca3f8c6cf3d0

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

require 'test/unit'
require 'carat/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
carats-0.3.0 test/tc_snapshot.rb