Sha256: 67d222ba9d244b07adca0bc81d1ea13c19d29453652b0855a53ac65108758875

Contents?: true

Size: 272 Bytes

Versions: 2

Compression:

Stored size: 272 Bytes

Contents

require 'foodtaster'
require 'support/test_server'

def with_mocked(*method_names)
  method_names.each do |method_name|
    allow(client).to receive(method_name)
  end
  yield
  method_names.each do |method_name|
    expect(client).to have_received(method_name)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foodtaster-0.0.10 spec/spec_helper.rb
foodtaster-0.0.9 spec/spec_helper.rb