Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to diff-lcs 1.2.2 #239

Merged
merged 7 commits into from
Apr 12, 2013
Merged
9 changes: 4 additions & 5 deletions spec/rspec/expectations/differ_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,17 @@ module Expectations

end
if RUBY_VERSION.to_f > 1.9
it 'copes with encoded strings' do
pending "awaiting patch on diff-lcs"
it 'copes with encoded strings', :pending => (Diff::LCS::VERSION < '1.2.2') do
@expected="Tu avec carté {count} itém has".encode('UTF-16LE')
@actual="Tu avec carte {count} item has".encode('UTF-16LE')
expect(subject).to eql(<<-EOD.encode('UTF-16LE'))

@@ -1,2 +1,2 @@
-Tu avec carté {count} itém has
+Tu avec carte {count} item has
-Tu avec carte {count} item has
+Tu avec carté {count} itém has
EOD
end
it 'copes with encoded strings' do
it 'copes with encoded strings', :pending => (Diff::LCS::VERSION >= '1.2.2') do
@expected="Tu avec carté {count} itém has".encode('UTF-16LE')
@actual="Tu avec carte {count} item has".encode('UTF-16LE')
expect(subject).to eql 'Could not produce a diff because of the encoding of the string (UTF-16LE)'
Expand Down