Class: RSpec::Mocks::RootSpace

Inherits:
Object
  • Object
show all
Defined in:
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 (collapse)

Instance Method Details

- (Object) any_instance_proxy_for(*args)



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

def any_instance_proxy_for(*args)
  raise_lifecycle_message
end

- (Object) any_instance_recorder_for(*args)



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

def any_instance_recorder_for(*args)
  raise_lifecycle_message
end

- (Object) new_scope



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

def new_scope
  Space.new
end

- (Object) proxy_for(*args)



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

def proxy_for(*args)
  raise_lifecycle_message
end

- (Object) register_constant_mutator(mutator)



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

def register_constant_mutator(mutator)
  raise_lifecycle_message
end

- (Boolean) registered?(object)



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

def registered?(object)
  false
end

- (Object) reset_all



24
25
# File 'lib/rspec/mocks/space.rb', line 24

def reset_all
end

- (Object) verify_all



27
28
# File 'lib/rspec/mocks/space.rb', line 27

def verify_all
end