Sha256: cc3d065738d0ca31bbbdc32e60178f96d028f245ef2e35096a49af22db4a43f8

Contents?: true

Size: 198 Bytes

Versions: 14

Compression:

Stored size: 198 Bytes

Contents

# encoding: utf-8

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
adhearsion-2.3.0 spec/support/punchblock_mocks.rb
adhearsion-2.2.1 spec/support/punchblock_mocks.rb
adhearsion-2.2.0 spec/support/punchblock_mocks.rb
adhearsion-2.1.3 spec/support/punchblock_mocks.rb
adhearsion-2.1.2 spec/support/punchblock_mocks.rb
adhearsion-2.1.1 spec/support/punchblock_mocks.rb
adhearsion-2.1.0 spec/support/punchblock_mocks.rb
adhearsion-2.0.1 spec/support/punchblock_mocks.rb
adhearsion-2.0.0 spec/support/punchblock_mocks.rb
adhearsion-2.0.0.rc5 spec/support/punchblock_mocks.rb
adhearsion-2.0.0.rc4 spec/support/punchblock_mocks.rb
adhearsion-2.0.0.rc3 spec/support/punchblock_mocks.rb
adhearsion-2.0.0.rc2 spec/support/punchblock_mocks.rb
adhearsion-2.0.0.rc1 spec/support/punchblock_mocks.rb