Sha256: e47159ae70ef6cef0b6b9347e3e0d8dab8f4d3a3ed420cd14206ebde89421de0
Contents?: true
Size: 789 Bytes
Versions: 5
Compression:
Stored size: 789 Bytes
Contents
module RR module Adapters module TestUnit include RRMethods def self.included(mod) RR.trim_backtrace = true mod.class_eval do unless instance_methods.include?('setup_with_rr') alias_method :setup_without_rr, :setup def setup_with_rr setup_without_rr RR.reset end alias_method :setup, :setup_with_rr alias_method :teardown_without_rr, :teardown def teardown_with_rr RR.verify teardown_without_rr end alias_method :teardown, :teardown_with_rr end end end def assert_received(subject, &block) block.call(received(subject)).call end end end end
Version data entries
5 entries across 5 versions & 1 rubygems