Ruby 1.8 doesn't have the concept of string encodings. Compare to the string as is.
This commit is contained in:
1 parent
da0a9f2de3
commit
fff82dc685
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user