Sha256: b1de24f65b5fe1bd2b9243dc2d785a053bf43c5c6054ba4171c416c8c898b607
Contents?: true
Size: 792 Bytes
Versions: 3
Compression:
Stored size: 792 Bytes
Contents
require 'rubygems' require 'data_objects' require 'data_objects/spec/bacon' require 'mocha/api' require 'mocha/object' require 'win32console' if RUBY_PLATFORM =~ /mingw|mswin/ module DataObjects::Pooling class << self remove_method :scavenger_interval if instance_methods(false).any? { |m| m.to_sym == :scavenger_interval } def scavenger_interval 0.5 end end end # see http://gnufied.org/2008/06/12/making-ruby-bacon-play-with-mocha/ class Bacon::Context include Mocha::API alias_method :old_it,:it def it description,&block mocha_setup old_it(description,&block) mocha_verify mocha_teardown end end require File.expand_path(File.join(File.dirname(__FILE__), 'do_mock')) require File.expand_path(File.join(File.dirname(__FILE__), 'do_mock2'))
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
data_objects-0.10.3 | spec/spec_helper.rb |
data_objects-0.10.2 | spec/spec_helper.rb |
data_objects-0.10.1 | spec/spec_helper.rb |