From fff82dc685711a1e2e3595332e184dc0e2a5dc9c Mon Sep 17 00:00:00 2001 From: Klaas Jan Wierenga Date: Thu, 2 May 2013 11:00:47 +0200 Subject: [PATCH] Ruby 1.8 doesn't have the concept of string encodings. Compare to the string as is. --- spec/foreman/process_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/foreman/process_spec.rb b/spec/foreman/process_spec.rb index 9a189b9..f9a54e0 100644 --- a/spec/foreman/process_spec.rb +++ b/spec/foreman/process_spec.rb @@ -41,7 +41,7 @@ describe Foreman::Process do it "should output utf8 properly" do process = Foreman::Process.new(resource_path("bin/utf8")) - run(process).should == "\xFF\x03\n".force_encoding('binary') + run(process).should == (Foreman.ruby_18? ? "\xFF\x03\n" : "\xFF\x03\n".force_encoding('binary')) end end