Sha256: 19fdef6b3e45ac0f7b4eeb8548170757f63017c4209ffb37f188729340f00000

Contents?: true

Size: 737 Bytes

Versions: 1

Compression:

Stored size: 737 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/mega/ostructable.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'mega/ostructable.rb'


  require 'test/unit'

  # fixture

  class Record
    include OpenStructable
  end

  # test

  class TC_OpenStructable < Test::Unit::TestCase

    def test_record
      record = nil
      assert_nothing_raised {
        record = Record.new
        record.name    = "John Smith"
        record.age     = 70
        record.pension = 300
      }
      assert_equal( "John Smith", record.name )
      assert_equal( 70, record.age )
      assert_equal( nil, record.address )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 test/lib/mega/test_ostructable.rb