Class: LafcadioTestCase

Inherits:
RUNIT::TestCase
  • Object
show all
Includes:
Lafcadio
Defined in:
lib/lafcadio/test/LafcadioTestCase.rb

Overview

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.

Constant Summary

Constants included from Lafcadio

Lafcadio::Version

Instance Method Summary collapse

Instance Method Details

#setupObject



10
11
12
13
14
15
16
# File 'lib/lafcadio/test/LafcadioTestCase.rb', line 10

def setup
	context = Context.instance
	context.flush
  @mockObjectStore = MockObjectStore.new context
context.setObjectStore @mockObjectStore
LafcadioConfig.setFilename 'lafcadio/test/testConfig.dat'
end