Permalink
Browse files

update a spec to pass on 1.8 and 1.8

  • Loading branch information...
1 parent 13f7744 commit 2e54d08e582788b293757e250844aed7b52a025a @yob committed Aug 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 βˆ’2 spec/integration_spec.rb
View
@@ -324,8 +324,9 @@
# pdf-reader would return Nil instead of the correct unicode character
PDF::Reader.open(filename) do |reader|
page = reader.page(1)
- m = /\u{1d475}\u{1d468}\u{1d47a}\u{1d46a}\u{1d468}\u{1d479}/.match(page.text)
- m[0].to_s.should eql("\u{1d475}\u{1d468}\u{1d47a}\u{1d46a}\u{1d468}\u{1d479}")
+ # 𝑡𝑨𝑺π‘ͺ𝑨𝑹
+ utf8_str = [0x1d475, 0x1d468, 0x1d47a, 0x1d46a, 0x1d468, 0x1d479].pack("U*")
+ page.text.should include(utf8_str)
end
end

0 comments on commit 2e54d08

Please sign in to comment.