Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

encoding diff now works thanks to diff-lcs 122

  • Loading branch information...
commit ebf6b961f8f1e7087cf7282fa4a120361e7f0c74 1 parent f2b15a3
@JonRowe authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 spec/rspec/expectations/differ_spec.rb
View
10 spec/rspec/expectations/differ_spec.rb
@@ -40,21 +40,15 @@ module Expectations
end
if RUBY_VERSION.to_f > 1.9
it 'copes with encoded strings' do
- pending "awaiting patch on diff-lcs"
@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
- @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)'
- end
it 'ouputs a message when encountering differently encoded strings' do
@expected="Tu avec carté {count} itém has".encode('UTF-16LE')
@actual="Tu avec carte {count} item has"
Please sign in to comment.
Something went wrong with that request. Please try again.