Sha256: 20b38d1660a8c6f4e27815230bf819a52fc8e2a13d416a61125343efea93b6d0
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
require File.expand_path('../adapter_tests', __FILE__) module TestUnitTests def self.included(base) base.class_eval { include AdapterTests } end def test_using_assert_received subject = Object.new stub(subject).foobar(1, 2) subject.foobar(1, 2) assert_received(subject) {|s| s.foobar(1, 2) } error_class = RR::Errors.error_class( RR::Errors::SpyVerificationErrors::InvocationCountError ) assert_raise(error_class) do assert_received(subject) {|s| s.foobar(1, 2, 3) } end end def test_trim_backtrace_is_set assert RR.trim_backtrace end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rr-1.1.0.rc2 | spec/suites/common/test_unit_tests.rb |
rr-1.1.0.rc1 | spec/suites/common/test_unit_tests.rb |