@@ -55,7 +55,7 @@ def test_index_grouped_by_category
55
55
assert_response :success
56
56
assert_select '#content' do
57
57
# ascending order of DocumentCategory#id.
58
- [ 'Uncategorized' , 'Technical documentation' ] . each_with_index do |text , idx |
58
+ [ 'Uncategorized' , 'Technical documentation' ] . each_with_index do |text , idx |
59
59
assert_select "h3:nth-of-type(#{ idx + 1 } )" , :text => text
60
60
end
61
61
end
@@ -69,7 +69,7 @@ def test_index_grouped_by_date
69
69
assert_response :success
70
70
assert_select '#content' do
71
71
# descending order of date.
72
- [ '2007-03-05' , '2007-02-12' ] . each_with_index do |text , idx |
72
+ [ '2007-03-05' , '2007-02-12' ] . each_with_index do |text , idx |
73
73
assert_select "h3:nth-of-type(#{ idx + 1 } )" , :text => text
74
74
end
75
75
end
@@ -83,7 +83,7 @@ def test_index_grouped_by_title
83
83
assert_response :success
84
84
assert_select '#content' do
85
85
# ascending order of title.
86
- [ 'A' , 'T' ] . each_with_index do |text , idx |
86
+ [ 'A' , 'T' ] . each_with_index do |text , idx |
87
87
assert_select "h3:nth-of-type(#{ idx + 1 } )" , :text => text
88
88
end
89
89
end
@@ -97,7 +97,7 @@ def test_index_grouped_by_author
97
97
assert_response :success
98
98
assert_select '#content' do
99
99
# ascending order of author.
100
- [ 'John Smith' , 'Redmine Admin' ] . each_with_index do |text , idx |
100
+ [ 'John Smith' , 'Redmine Admin' ] . each_with_index do |text , idx |
101
101
assert_select "h3:nth-of-type(#{ idx + 1 } )" , :text => text
102
102
end
103
103
end
0 commit comments