module MotherBrain::Test
Public Class Methods
mock(type)
click to toggle source
# File lib/mb/test.rb, line 7 def self.mock(type) type = type.to_s klass = begin "::MB::Test::#{type.camelize}".constantize rescue NameError MB.log.warn { "Couldn't find test class for #{type}" } return false end klass.mock! end