Don't use any Ruby 1.9-only notation in the encoding call

This commit is contained in:
Mark VanderVoord
2014-04-21 16:15:14 -04:00
parent 651d24744d
commit a77f0308a7

View File

@ -40,7 +40,7 @@ class UnityTestRunnerGenerator
#pull required data from source file
source = File.read(input_file)
source = source.force_encoding("ISO-8859-1").encode("utf-8", replace: nil) if ($QUICK_RUBY_VERSION > 10900)
source = source.force_encoding("ISO-8859-1").encode("utf-8", :replace => nil) if ($QUICK_RUBY_VERSION > 10900)
tests = find_tests(source)
testfile_includes = find_includes(source)
used_mocks = find_mocks(testfile_includes)