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

Version Path
facets-2.6.0 test/more/test_snapshot.rb
facets-2.3.0 test/more/test_snapshot.rb
facets-2.4.0 test/test_snapshot.rb
facets-2.4.1 test/test_snapshot.rb
facets-2.4.4 test/more/test_snapshot.rb
facets-2.4.2 test/more/test_snapshot.rb
facets-2.4.3 test/more/test_snapshot.rb
facets-2.4.5 test/more/test_snapshot.rb
facets-2.5.1 test/more/test_snapshot.rb
facets-2.5.0 test/more/test_snapshot.rb
facets-2.5.2 test/more/test_snapshot.rb