Sha256: f324438b00ddedf22759ae77e0eb1706e291cd56d462401bc1fcacc72ef854a8

Contents?: true

Size: 398 Bytes

Versions: 13

Compression:

Stored size: 398 Bytes

Contents

#encoding: UTF-8
require 'spec_helper'

describe Termit::TextResponseHandler do
  describe "call method" do
    let(:handler) do
      response_body = File.open('spec/fixtures/text_response').read
      Termit::TextResponseHandler.new(response_body)
    end

    it "extracts data from HTTP response body" do
      expect($stdout).to receive(:puts).with("Ass")
      handler.call
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
termit-3.9.0 spec/termit/text_response_handler_spec.rb
termit-3.8.0 spec/termit/text_response_handler_spec.rb
termit-3.7.0 spec/termit/text_response_handler_spec.rb
termit-3.6.0 spec/termit/text_response_handler_spec.rb
termit-3.5.0 spec/termit/text_response_handler_spec.rb
termit-3.4.0 spec/termit/text_response_handler_spec.rb
termit-3.2.0 spec/termit/text_response_handler_spec.rb
termit-3.1.2 spec/termit/text_response_handler_spec.rb
termit-3.1.1 spec/termit/text_response_handler_spec.rb
termit-3.1.0 spec/termit/text_response_handler_spec.rb
termit-3.0.2 spec/termit/text_response_handler_spec.rb
termit-3.0.1 spec/termit/text_response_handler_spec.rb
termit-3.0.0 spec/termit/text_response_handler_spec.rb