Commit e6f4aa3c2c15a1d894e347e1246c0c44d4edf70f
1 parent
905ae96c
Exists in
master
and in
29 other branches
tags-helper: avoiding randomness on tests
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
test/unit/tags_helper_test.rb
... | ... | @@ -25,7 +25,9 @@ class TagsHelperTest < ActiveSupport::TestCase |
25 | 25 | :id, |
26 | 26 | { :host=>'noosfero.org', :controller=>'test', :action=>'tag' } |
27 | 27 | ) |
28 | - assert_equal %w(A Á ÁA AB area área armário aula avião).join("\n"), result | |
28 | + result = result.split("\n") | |
29 | + assert_order ['Á', 'ÁA', 'AB', 'área', 'armário', 'aula', 'avião' ], result | |
30 | + assert_order ['A', 'AB', 'area', 'armário', 'aula', 'avião' ], result | |
29 | 31 | end |
30 | 32 | |
31 | 33 | end | ... | ... |