<NME> text_response_handler_spec.rb
<BEF> #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

      it "extracts data from HTTP response body" do
        expect(STDOUT).to receive(:puts).with("tyłek")
        expect(STDOUT).to receive(:puts).with("")
        expect(STDOUT).to receive(:puts).with("Synonyms:", "osioł, tyłek, dupa, zadek")
        handler.call
      end
    end

<MSG> fixed output format

<DFF> @@ -23,8 +23,7 @@ describe Termit::TextResponseHandler do
 
       it "extracts data from HTTP response body" do
         expect(STDOUT).to receive(:puts).with("tyłek")
-        expect(STDOUT).to receive(:puts).with("")
-        expect(STDOUT).to receive(:puts).with("Synonyms:", "osioł, tyłek, dupa, zadek")
+        expect(STDOUT).to receive(:puts).with("osioł, tyłek, dupa, zadek")
         handler.call
       end
     end

{'addition_count': 1, 'commit_subject': 'fixed output format', 'deletion_count': 2, 'file_extension': '.rb', 'lang': 'rb', 'license': 'mit', 'repo_name': 'pawurb/termit'}