Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def extract_test_report(container)

tar_file = Gem::Package::TarReader.new(stream)
tar_file.each do |file|
return file.read
return file.read.force_encoding(Encoding::UTF_8)
end
rescue Docker::Error::NotFoundError
return nil
Expand Down
2 changes: 1 addition & 1 deletion lib/coursemology/evaluator/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true
module Coursemology; end
module Coursemology::Evaluator
VERSION = '0.1.5'.freeze
VERSION = '0.1.7'.freeze

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Freezing immutable objects is pointless.

end
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ def copy_dummy_report

it 'returns the test report' do
copy_dummy_report
expect(subject.send(:extract_test_report, container)).to eq(report_contents)
test_report = subject.send(:extract_test_report, container)
expect(test_report).to eq(report_contents)
expect(test_report.encoding).to eq Encoding::UTF_8
end

context 'when running the tests fails' do
Expand Down