Sha256: 945f61b647f6b9d455c137981d8dd870c5ad9431eb449e1ab0249dd833848089

Contents?: true

Size: 201 Bytes

Versions: 5

Compression:

Stored size: 201 Bytes

Contents

# encoding: utf-8

def mock_offer(id = nil, headers = {})
  id ||= rand
  mock("Offer: #{id}").tap do |offer|
    offer.stub :call_id => id, :headers_hash => headers
    offer.as_null_object
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adhearsion-2.3.5 spec/support/punchblock_mocks.rb
adhearsion-2.3.4 spec/support/punchblock_mocks.rb
adhearsion-2.3.3 spec/support/punchblock_mocks.rb
adhearsion-2.3.2 spec/support/punchblock_mocks.rb
adhearsion-2.3.1 spec/support/punchblock_mocks.rb