Class: FunWith::Testing::TestCase
- Inherits:
-
Minitest::Test
- Object
- Minitest::Test
- FunWith::Testing::TestCase
- Defined in:
- lib/fun_with/testing/test_case.rb
Direct Known Subclasses
Class Method Summary collapse
-
._context(*args, &block) ⇒ Object
Convenience methods for disappearing a set of tests.
- ._should(*args, &block) ⇒ Object
- .install_basic_assertions ⇒ Object
- .install_test_mode ⇒ Object
- .install_verbosity ⇒ Object
Class Method Details
._context(*args, &block) ⇒ Object
Convenience methods for disappearing a set of tests. Useful for focusing on one or two tests.
17 18 19 |
# File 'lib/fun_with/testing/test_case.rb', line 17 def self._context(*args, &block) puts "<<< WARNING >>> IGNORING TEST SET #{args.inspect}. Remove leading _ from '_context()' to reactivate." end |
._should(*args, &block) ⇒ Object
21 22 23 |
# File 'lib/fun_with/testing/test_case.rb', line 21 def self._should(*args, &block) puts "<<< WARNING >>> IGNORING TEST #{args.inspect}. Remove leading _ from '_should()' to reactivate." end |
.install_basic_assertions ⇒ Object
12 13 14 |
# File 'lib/fun_with/testing/test_case.rb', line 12 def self.install_basic_assertions include Assertions::Basics end |
.install_test_mode ⇒ Object
8 9 10 |
# File 'lib/fun_with/testing/test_case.rb', line 8 def self.install_test_mode include TestModeMethods end |
.install_verbosity ⇒ Object
4 5 6 |
# File 'lib/fun_with/testing/test_case.rb', line 4 def self.install_verbosity include VerbosityMethods end |