123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Mocks::RootSpace Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: rspec-mocks/lib/rspec/mocks/space.rb

Overview

Provides a default space implementation for outside the scope of an example. Called “root” because it serves as the root of the space stack.

Instance Method Summary

Instance Method Details

#any_instance_proxy_for(*_args)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 18

def any_instance_proxy_for(*_args)
  raise_lifecycle_message
end

#any_instance_recorder_for(*_args)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 14

def any_instance_recorder_for(*_args)
  raise_lifecycle_message
end

#any_instance_recorders_from_ancestry_of(_object)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 26

def any_instance_recorders_from_ancestry_of(_object)
  raise_lifecycle_message
end

#new_scope

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 44

def new_scope
  Space.new
end

#proxy_for(*_args)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 10

def proxy_for(*_args)
  raise_lifecycle_message
end

#raise_lifecycle_message (private)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 50

def raise_lifecycle_message
  raise OutsideOfExampleError,
        "The use of doubles or partial doubles from rspec-mocks outside of the per-test lifecycle is not supported."
end

#register_constant_mutator(_mutator)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 22

def register_constant_mutator(_mutator)
  raise_lifecycle_message
end

#registered?(_object) ⇒ Boolean

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 36

def registered?(_object)
  false
end

#reset_all

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 30

def reset_all
end

#superclass_proxy_for(*_args)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 40

def superclass_proxy_for(*_args)
  raise_lifecycle_message
end

#verify_all

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/space.rb', line 33

def verify_all
end