Module: RSpec::Forward
- Defined in:
- lib/rspec/forward.rb,
lib/rspec/forward/version.rb,
lib/rspec/forward/core_extensions.rb,
lib/rspec/forward/forward_methods.rb,
lib/rspec/forward/forward_to_scope.rb,
lib/rspec/forward/forward_to_instance.rb,
lib/rspec/forward/forward_scope_methods.rb,
lib/rspec/forward/forward_to_instance_build.rb,
lib/rspec/forward/forward_scope_parent_methods.rb
Defined Under Namespace
Modules: CoreExtensions, ForwardMethods, ForwardScopeMethods, ForwardScopeParentMethods
Classes: Error, ForwardToInstance, ForwardToInstanceBuild, ForwardToScope
Constant Summary
collapse
- VERSION =
"0.3.1"
Instance Method Summary
collapse
Instance Method Details
#forward_to_instance(expected) ⇒ Object
16
17
18
|
# File 'lib/rspec/forward.rb', line 16
def forward_to_instance(expected)
ForwardToInstance.new(expected)
end
|
#forward_to_instance_build(expected) ⇒ Object
20
21
22
|
# File 'lib/rspec/forward.rb', line 20
def forward_to_instance_build(expected)
ForwardToInstanceBuild.new(expected)
end
|
#forward_to_scope(expected) ⇒ Object
24
25
26
|
# File 'lib/rspec/forward.rb', line 24
def forward_to_scope(expected)
ForwardToScope.new(expected)
end
|