Sha256: d6a41123001592d9adce898d98433038724d88f25f50132dd2346a094b8afa8e

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

$:.unshift File.dirname(__FILE__)

module Caricature
#
#  module Interception
#
#  end
#
end

require 'core_ext/core_ext'   
require 'caricature/version'
require 'caricature/isolation'     
require 'caricature/clr' if defined? IRONRUBY_VERSION 
require 'caricature/bacon' if defined? Bacon
require 'caricature/rspec' if defined? Spec

# convenience method for creating an isolation. aliased as mock and stub for less surprises
def isolate(subject, recorder = Caricature::MethodCallRecorder.new, expectations = Caricature::Expectations.new)
  Caricature::Isolation.for(subject, recorder, expectations)
end
alias :mock :isolate
alias :stub :isolate

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caricature-0.7.2 lib/caricature.rb