Sha256: 853888d32d401cfceb855ae2ac3643971a03d53c6dcf34d8b6ae27a4bd4ae1ec
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
module RR module Adapters class RSpec1 module AdapterMethods def setup_mocks_for_rspec RR.reset end def verify_mocks_for_rspec RR.verify end def teardown_mocks_for_rspec RR.reset end def have_received(method = nil) RSpec::InvocationMatcher.new(method) end end def name 'RSpec 1' end def applies? defined?(::Spec) end def hook ::Spec::Runner.configure do |config| config.mock_with AdapterMethods config.include RRMethods end patterns = ::Spec::Runner::QuietBacktraceTweaker::IGNORE_PATTERNS unless patterns.include?(RR::Errors::BACKTRACE_IDENTIFIER) patterns.push(RR::Errors::BACKTRACE_IDENTIFIER) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rr-1.1.0.rc1 | lib/rr/adapters/rspec_1.rb |