features/step_definitions/latex.rb in latex-decode-0.3.2 vs features/step_definitions/latex.rb in latex-decode-0.4.0

- old
+ new

@@ -3,5 +3,10 @@ end Then /^the result should be ('|")(.*)\1$/ do |quote,value| expect(@result).to eq(value) end + +# For whitespace or other characters that are hard to read in source code: +Then /^I should get '([^']*)' \+ U\+(\h{4,}) \+ '([^']*)'$/ do |pre,code,post| + expect(@result).to eq(pre + code.hex.chr(Encoding::UTF_8) + post) +end