Sha256: d8a878cc8009f0c1212743e24cf5a16a51dffd3d8eb3a4185cd7d1d2d24ff763

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

require 'rubygems' unless defined?(Gem)
$:.unshift File.dirname(__FILE__)
require 'uuidtools'

module Caricature
#
#  module Interception
#
#  end
#
end

require 'caricature/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.6 lib/caricature.rb