From: Jean-Philippe Lang Date: Sat, 5 Oct 2013 10:58:33 +0000 (+0000) Subject: Rows may not be oredered as expected with ruby1.8 (#4911). X-Git-Tag: 2.4.0~63 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1b63553dd4018911d0d30dd458031c702bed22cd;p=redmine.git Rows may not be oredered as expected with ruby1.8 (#4911). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12201 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb index 57dd629b2..b3cf7bd5a 100644 --- a/test/functional/settings_controller_test.rb +++ b/test/functional/settings_controller_test.rb @@ -89,13 +89,13 @@ class SettingsControllerTest < ActionController::TestCase end assert_response :success assert_select 'tr.commit-keywords', 2 - assert_select 'tr.commit-keywords:nth-child(1)' do + assert_select 'tr.commit-keywords' do assert_select 'input[name=?][value=?]', 'settings[commit_update_keywords][keywords][]', 'fixes, resolves' assert_select 'select[name=?]', 'settings[commit_update_keywords][status_id][]' do assert_select 'option[value=3][selected=selected]' end end - assert_select 'tr.commit-keywords:nth-child(2)' do + assert_select 'tr.commit-keywords' do assert_select 'input[name=?][value=?]', 'settings[commit_update_keywords][keywords][]', 'closes' assert_select 'select[name=?]', 'settings[commit_update_keywords][status_id][]' do assert_select 'option[value=5][selected=selected]'