class ProtoPharm::RSpec::ActionStubProxy
Attributes
expectations[R]
rpc_action[R]
Public Class Methods
new(rpc_action)
click to toggle source
# File lib/proto_pharm/rspec/action_stub_proxy.rb, line 8 def initialize(rpc_action) @rpc_action = rpc_action @expectations = [] end
Public Instance Methods
and_fail()
click to toggle source
# File lib/proto_pharm/rspec/action_stub_proxy.rb, line 41 def and_fail expectations << Expectation.new(:to_fail, [], {}) self end
and_fail_with(*args, **kwargs)
click to toggle source
Proxies ActionStub#to_fail_with
# File lib/proto_pharm/rspec/action_stub_proxy.rb, line 35 def and_fail_with(*args, **kwargs) expectations << Expectation.new(:to_fail_with, args, kwargs) self end
and_raise(*args, **kwargs)
click to toggle source
Proxies ActionStub#to_raise
# File lib/proto_pharm/rspec/action_stub_proxy.rb, line 28 def and_raise(*args, **kwargs) expectations << Expectation.new(:to_raise, args, kwargs) self end
and_return(*args, **kwargs)
click to toggle source
Proxies ActionStub#to_return
# File lib/proto_pharm/rspec/action_stub_proxy.rb, line 21 def and_return(*args, **kwargs) expectations << Expectation.new(:to_return, args, kwargs) self end
with(*args, **kwargs)
click to toggle source
Proxies ActionStub#with
# File lib/proto_pharm/rspec/action_stub_proxy.rb, line 14 def with(*args, **kwargs) expectations << Expectation.new(:with, args, kwargs) self end