kucaahbe / rspec-html-matchers

Old school have_tag, with_tag(and more) matchers for rspec 3 (Nokogiri powered)
http://rubygems.org/gems/rspec-html-matchers
MIT License
199 stars 90 forks source link

Have tag failed with unicode text #13

Closed phuongnd08 closed 12 years ago

phuongnd08 commented 12 years ago

This assertion

rendered.should have_tag('a', :text => "học") # học is Vietnamese equivalent word for English learn

is failing with error

     Encoding::CompatibilityError:
       incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
kucaahbe commented 12 years ago

thanks for this, fixed and released 0.2.3 version, enjoy!