Module: Test::Unit::Fixture::ClassMethods

Defined in:
lib/test/unit/fixture.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) after_cleanup_callbacks



85
86
87
# File 'lib/test/unit/fixture.rb', line 85

def after_cleanup_callbacks
  collect_fixture_callbacks(:cleanup, :after)
end

- (Object) after_setup_callbacks



77
78
79
# File 'lib/test/unit/fixture.rb', line 77

def after_setup_callbacks
  collect_fixture_callbacks(:setup, :after)
end

- (Object) after_teardown_callbacks



93
94
95
# File 'lib/test/unit/fixture.rb', line 93

def after_teardown_callbacks
  collect_fixture_callbacks(:teardown, :after)
end

- (Object) before_cleanup_callbacks



81
82
83
# File 'lib/test/unit/fixture.rb', line 81

def before_cleanup_callbacks
  collect_fixture_callbacks(:cleanup, :before)
end

- (Object) before_setup_callbacks



73
74
75
# File 'lib/test/unit/fixture.rb', line 73

def before_setup_callbacks
  collect_fixture_callbacks(:setup, :before)
end

- (Object) before_teardown_callbacks



89
90
91
# File 'lib/test/unit/fixture.rb', line 89

def before_teardown_callbacks
  collect_fixture_callbacks(:teardown, :before)
end

- (Object) cleanup(*method_names, &callback)



30
31
32
# File 'lib/test/unit/fixture.rb', line 30

def cleanup(*method_names, &callback)
  register_fixture(:cleanup, *method_names, &callback)
end

- (Object) register_cleanup_callback(method_name_or_callback, options)



55
56
57
58
# File 'lib/test/unit/fixture.rb', line 55

def register_cleanup_callback(method_name_or_callback, options)
  register_fixture_callback(:cleanup, method_name_or_callback,
                            options, :before, :prepend)
end

- (Object) register_setup_callback(method_name_or_callback, options)



46
47
48
49
# File 'lib/test/unit/fixture.rb', line 46

def register_setup_callback(method_name_or_callback, options)
  register_fixture_callback(:setup, method_name_or_callback,
                            options, :after, :append)
end

- (Object) register_teardown_callback(method_name_or_callback, options)



64
65
66
67
# File 'lib/test/unit/fixture.rb', line 64

def register_teardown_callback(method_name_or_callback, options)
  register_fixture_callback(:teardown, method_name_or_callback,
                            options, :before, :prepend)
end

- (Object) setup(*method_names, &callback)



22
23
24
# File 'lib/test/unit/fixture.rb', line 22

def setup(*method_names, &callback)
  register_fixture(:setup, *method_names, &callback)
end

- (Object) teardown(*method_names, &callback)



38
39
40
# File 'lib/test/unit/fixture.rb', line 38

def teardown(*method_names, &callback)
  register_fixture(:teardown, *method_names, &callback)
end

- (Object) unregister_cleanup(*method_names_or_callbacks)



34
35
36
# File 'lib/test/unit/fixture.rb', line 34

def unregister_cleanup(*method_names_or_callbacks)
  unregister_fixture(:cleanup, *method_names_or_callbacks)
end

- (Object) unregister_cleanup_callback(method_name_or_callback)



60
61
62
# File 'lib/test/unit/fixture.rb', line 60

def unregister_cleanup_callback(method_name_or_callback)
  unregister_fixture_callback(:cleanup, method_name_or_callback)
end

- (Object) unregister_setup(*method_names_or_callbacks)



26
27
28
# File 'lib/test/unit/fixture.rb', line 26

def unregister_setup(*method_names_or_callbacks)
  unregister_fixture(:setup, *method_names_or_callbacks)
end

- (Object) unregister_setup_callback(method_name_or_callback)



51
52
53
# File 'lib/test/unit/fixture.rb', line 51

def unregister_setup_callback(method_name_or_callback)
  unregister_fixture_callback(:setup, method_name_or_callback)
end

- (Object) unregister_teardown(*method_names_or_callbacks)



42
43
44
# File 'lib/test/unit/fixture.rb', line 42

def unregister_teardown(*method_names_or_callbacks)
  unregister_fixture(:teardown, *method_names_or_callbacks)
end

- (Object) unregister_teardown_callback(method_name_or_callback)



69
70
71
# File 'lib/test/unit/fixture.rb', line 69

def unregister_teardown_callback(method_name_or_callback)
  unregister_fixture_callback(:teardown, method_name_or_callback)
end