Class: Shoulda::Matchers::Integrations::TestFrameworks::MissingTestFramework
- Inherits:
-
Object
- Object
- Shoulda::Matchers::Integrations::TestFrameworks::MissingTestFramework
- 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, **) end |
#n_unit? ⇒ Boolean
29 30 31 |
# File 'lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb', line 29 def n_unit? false end |
#present? ⇒ Boolean
33 34 35 |
# File 'lib/shoulda/matchers/integrations/test_frameworks/missing_test_framework.rb', line 33 def present? false end |
#validate! ⇒ Object
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, "You need to set a test framework. Please add the following to your\ntest helper:\n\nShoulda::Matchers.configure do |config|\n config.integrate do |with|\n # Choose one:\n with.test_framework :rspec\n with.test_framework :minitest # or, :minitest_5\n with.test_framework :minitest_4\n with.test_framework :test_unit\n end\nend\n EOT\nend\n" |