Module: Nyanko::Test

Defined in:
lib/nyanko/test.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.activationsObject



4
5
6
# File 'lib/nyanko/test.rb', line 4

def activations
  @activations ||= {}
end

.included(base) ⇒ Object



8
9
10
# File 'lib/nyanko/test.rb', line 8

def included(base)
  base.send :include, UnitProxyProvider
end

Instance Method Details

#disable_unit(unit_name) ⇒ Object Also known as: disable_ext



18
19
20
# File 'lib/nyanko/test.rb', line 18

def disable_unit(unit_name)
  Test.activations[unit_name] = false
end

#enable_unit(unit_name) ⇒ Object Also known as: enable_ext



13
14
15
# File 'lib/nyanko/test.rb', line 13

def enable_unit(unit_name)
  Test.activations[unit_name] = true
end