]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/plugins/mock_frameworks/rr.rb
Show whether a trace is public or private in the trace list, so that a user can easil...
[rails.git] / vendor / gems / rspec-1.1.2 / plugins / mock_frameworks / rr.rb
1 require 'rr'
2
3 patterns = ::Spec::Runner::QuietBacktraceTweaker::IGNORE_PATTERNS
4 patterns.push(RR::Errors::BACKTRACE_IDENTIFIER)
5
6 module Spec
7   module Plugins
8     module MockFramework
9       include RR::Extensions::InstanceMethods
10       def setup_mocks_for_rspec
11         RR::Space.instance.reset
12       end
13       def verify_mocks_for_rspec
14         RR::Space.instance.verify_doubles
15       end
16       def teardown_mocks_for_rspec
17         RR::Space.instance.reset
18       end
19     end
20   end
21 end