Class: Test::Unit::TestCase

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

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.couchdb_fixtures(*databases) ⇒ Object



44
45
46
# File 'lib/couch_rest_rails/tests.rb', line 44

def couchdb_fixtures(*databases)
  self.database = databases.map { |d| d.to_s }
end

Instance Method Details

#setup_couchdb_fixturesObject



48
49
50
# File 'lib/couch_rest_rails/tests.rb', line 48

def setup_couchdb_fixtures
  CouchRestRails::Tests.setup(self.database) unless self.database.nil?
end

#teardown_couchdb_fixturesObject



51
52
53
# File 'lib/couch_rest_rails/tests.rb', line 51

def teardown_couchdb_fixtures
  CouchRestRails::Tests.teardown(self.database) unless self.database.nil?
end