class MiniSpec::Mocks::MultipleStubsProxy

Public Class Methods

new(stubs) click to toggle source
# File lib/minispec/mocks/stubs.rb, line 4
def initialize stubs
  @stubs = stubs.freeze
end

Public Instance Methods

with(*a, &b) click to toggle source
# File lib/minispec/mocks/stubs.rb, line 8
def with *a, &b
  @stubs.each {|s| s.with(*a, &b)}
  self
end
with_any(*a, &b) click to toggle source
# File lib/minispec/mocks/stubs.rb, line 13
def with_any *a, &b
  @stubs.each {|s| s.with_any(*a, &b)}
  self
end