Class: Test::Unit::TestCase

Inherits:
Object show all
Defined in:
lib/auto_mocha/auto_mock.rb,
lib/stubba/test_case.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.method_added(method) ⇒ Object



5
6
7
# File 'lib/stubba/test_case.rb', line 5

def self.method_added(method)
  # disable until we finish messing about
end

Instance Method Details

#reset_mochasObject



46
47
48
# File 'lib/auto_mocha/auto_mock.rb', line 46

def reset_mochas
  Object.reset_mochas
end

#setup_with_stubbaObject



9
10
11
# File 'lib/stubba/test_case.rb', line 9

def setup_with_stubba
  $stubba = Stubba::Stubba.new
end

#teardown_with_stubbaObject



13
14
15
16
# File 'lib/stubba/test_case.rb', line 13

def teardown_with_stubba
  $stubba.unstub_all
  $stubba = nil
end

#verify_allObject



50
51
52
# File 'lib/auto_mocha/auto_mock.rb', line 50

def verify_all
  Object.verify_all
end