Sha256: ee9c1f42f56bf921284e388783bcc4e326f4e12e2eb8cc00ab85d5d9fc3e59d6

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

require 'helper'

describe HTTParty::Response do
  before do
    stub_request(:any, 'http://example.com').to_return(body: 'hello world')
  end

  describe '#assert' do
    it 'should be monkeypatched correctly' do
      response =  HTTParty.get 'http://example.com'
      expect(response.assert).to be_a(HTTPFiesta::Assertion)
      expect(response.assert.response).to eq(response)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
httpfiesta-0.0.2 spec/lib/monkeypatch_spec.rb
httpfiesta-0.0.1 spec/lib/monkeypatch_spec.rb