Class: FunWith::Testing::TestCase

Inherits:
Minitest::Test
  • Object
show all
Defined in:
lib/fun_with/testing/test_case.rb

Direct Known Subclasses

AssertionsTestCase

Class Method Summary collapse

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_assertionsObject



12
13
14
# File 'lib/fun_with/testing/test_case.rb', line 12

def self.install_basic_assertions
  include Assertions::Basics
end

.install_test_modeObject



8
9
10
# File 'lib/fun_with/testing/test_case.rb', line 8

def self.install_test_mode
  include TestModeMethods
end

.install_verbosityObject



4
5
6
# File 'lib/fun_with/testing/test_case.rb', line 4

def self.install_verbosity
  include VerbosityMethods
end