Class: Evil::Client::RSpec::BaseStub

Inherits:
Object
  • Object
show all
Includes:
RSpec::Matchers, RSpec::Mocks::ExampleMethods
Defined in:
lib/evil/client/rspec/base_stub.rb

Overview

Container to chain settings for stubbing operation(s)

Direct Known Subclasses

AllowStub, ExpectStub

Instance Method Summary collapse

Instance Method Details

#with(condition = nil, &block) ⇒ Object



10
11
12
# File 'lib/evil/client/rspec/base_stub.rb', line 10

def with(condition = nil, &block)
  update(condition || block)
end