Class: Shoulda::Matchers::Integrations::TestFrameworks::MissingTestFramework

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

Instance Method Summary collapse

Instance Method Details

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



26
27
# File 'lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb', line 26

def include(*modules, **options)
end

#n_unit?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb', line 29

def n_unit?
  false
end

#present?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb', line 33

def present?
  false
end

#validate!Object

Raises:

  • (TestFrameworkNotConfigured)


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb', line 9

def validate!
  raise TestFrameworkNotConfigured, <<-EOT
You need to set a test framework. Please add the following to your
test helper:

Shoulda::Matchers.configure do |config|
  config.integrate do |with|
    # Choose one:
    with.test_framework :rspec
    with.test_framework :minitest    # or, :minitest_5
    with.test_framework :minitest_4
    with.test_framework :test_unit
  end
end
  EOT
end