Class: RSpec::Mocks::Space
- Inherits:
-
Object
- Object
- RSpec::Mocks::Space
- Defined in:
- ext/rspec-mocks/space.rb
Instance Method Summary collapse
Instance Method Details
#__rspec_bash_proxy_for ⇒ Object
10 |
# File 'ext/rspec-mocks/space.rb', line 10 alias __rspec_bash_proxy_for proxy_for |
#proxy_for(object) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'ext/rspec-mocks/space.rb', line 12 def proxy_for(object) return __rspec_bash_proxy_for(object) unless object.is_a?(RSpec::Bash::Script) proxy_mutex.synchronize do id = id_for(object) proxies.fetch(id) do proxies[id] = RSpec::Bash::Mocks::ScriptProxy.new(object, @expectation_ordering) end end end |