Class: Test::Unit::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/mosquito.rb

Overview

:nodoc:

Direct Known Subclasses

Camping::Test

Instance Method Summary collapse

Instance Method Details

#create_fixtures(*table_names) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/mosquito.rb', line 25

def create_fixtures(*table_names)
  if block_given?
    Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield }
  else
    Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
  end
end