Sha256: 6719cb88bae2ccdb253cf7160266c0977dedeee2783da2cbab39a94e9a8414a1

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

require 'spec_helper'
require 'ostruct'

describe 'Intercom::Request' do
  it 'raises an error when a html error page rendered' do
    response = OpenStruct.new(:code => 500)
    req = Intercom::Request.new('path/', 'GET')
    proc {req.parse_body('<html>somethjing</html>', response)}.must_raise(Intercom::ServerError)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
intercom-2.4.1 spec/unit/intercom/request_spec.rb
intercom-2.4.0 spec/unit/intercom/request_spec.rb
intercom-2.3.0 spec/unit/intercom/request_spec.rb