Class: Test::Unit::TestCase

Inherits:
Object show all
Defined in:
lib/doh/test/setup_once.rb,
lib/doh/test/clear_on_teardown.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



4
5
6
7
8
9
# File 'lib/doh/test/setup_once.rb', line 4

def setup
  unless @setup_once
    @setup_once = true
    setup_once
  end
end

#setup_onceObject



11
12
# File 'lib/doh/test/setup_once.rb', line 11

def setup_once
end

#teardownObject



6
7
8
# File 'lib/doh/test/clear_on_teardown.rb', line 6

def teardown
  Doh::clear_current_date
end