Module: Kernel

Defined in:
lib/quickie_motion/core_ext/kernel.rb

Overview

Copyright © 2011-2012 Michael Dvorkin

Awesome Print is freely distributable under the terms of MIT license. See LICENSE file or www.opensource.org/licenses/mit-license.php


Class Method Summary collapse

Class Method Details

.mockObject



15
16
17
# File 'lib/quickie_motion/core_ext/kernel.rb', line 15

def mock
  Quickie::Mock.new
end

.quckieObject



7
8
9
10
11
12
13
# File 'lib/quickie_motion/core_ext/kernel.rb', line 7

def quckie
  current, Exception.log_exceptions = Exception.log_exceptions, false
  yield
  Quickie::Runner.summary
ensure
  Exception.log_exceptions = current
end