spec/unit/rack/logs/viewer_spec.rb in rack-logs-0.0.1 vs spec/unit/rack/logs/viewer_spec.rb in rack-logs-0.0.2

- old
+ new

@@ -29,9 +29,13 @@ expect(response[1]).to be_a Hash expect(response[1].keys).to include 'Content-Type' expect(response[2].respond_to? :each).to be true end it 'returns the contents of the logs' do - expect(response[2]).to eq ["## tmp/my_log.doge\n\nMuch log, such information"] + contents = "" + response[2].each do |fragment| + contents << fragment + end + expect(contents).to eq "## tmp/my_log.doge\n\nMuch log, such information" end end end