Module: Chanko::Test

Defined in:
lib/chanko/test.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.activationsObject



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

def activations
  @activations ||= {}
end

.included(base) ⇒ Object



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

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

.loggerObject



12
13
14
# File 'lib/chanko/test.rb', line 12

def logger
  @logger = ::Logger.new(STDOUT)
end

Instance Method Details

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



22
23
24
# File 'lib/chanko/test.rb', line 22

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

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



17
18
19
# File 'lib/chanko/test.rb', line 17

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