From a77f0308a714703f826a6c9eee7078529e557193 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Mon, 21 Apr 2014 16:15:14 -0400 Subject: [PATCH] Don't use any Ruby 1.9-only notation in the encoding call --- auto/generate_test_runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto/generate_test_runner.rb b/auto/generate_test_runner.rb index b984960..fd48f1b 100644 --- a/auto/generate_test_runner.rb +++ b/auto/generate_test_runner.rb @@ -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)