Class LafcadioTestCase
In: lafcadio/test.rb
Parent: Test::Unit::TestCase

A test case that sets up a number of mock services. In writing an application that uses Lafcadio you may find it convenient to inherit from this class.

Methods

Included Modules

Lafcadio

Public Instance methods

Asserts that for each key-value pair in att_values, sending the key to object will return the value.

  u = User.new( 'fname' => 'Francis', 'lname' => 'Hwang' )
  assert_attributes( u, { 'fname' => 'Francis', 'lname' => 'Hwang' } )

[Validate]