mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-03 02:57:19 +08:00
Don't use any Ruby 1.9-only notation in the encoding call
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user