Class: Shoulda::Matchers::Integrations::TestFrameworks::TestUnit

Inherits:
Object
  • Object
show all
Defined in:
lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb

Instance Method Summary collapse

Instance Method Details

#include(*modules, **_options) ⇒ Object



12
13
14
15
16
17
# File 'lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb', line 12

def include(*modules, **_options)
  test_case_class.class_eval do
    include(*modules)
    extend(*modules)
  end
end

#n_unit?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb', line 19

def n_unit?
  true
end

#present?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb', line 23

def present?
  true
end

#validate!Object



9
10
# File 'lib/shoulda/matchers/integrations/test_frameworks/test_unit.rb', line 9

def validate!
end