test/slug_test.rb in friendly_id-2.0.4 vs test/slug_test.rb in friendly_id-2.1.0
- old
+ new
@@ -37,11 +37,11 @@
should "strip diacritics correctly " do
input = "ÀÁÂÃÄÅÆÇÈÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ"
output = Slug::strip_diacritics(input).split(//)
expected = "AAAAAAAECEEEIIIIDNOOOOOOUUUUYThssaaaaaaaeceeeeiiiidnoooooouuuuythy".split(//)
- output.split.each_index do |i|
- assert_equal output[i], expected[i]
+ output.each_index do |i|
+ assert_equal expected[i], output[i]
end
end
end
\ No newline at end of file