diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb
index aeb5ab9bd6bbce5c5a197adf250facca0658bd5d..d85ef73dfdd4eb1fa96e1178155cf17e2a3188f5 100644
--- a/test/functional/repositories_filesystem_controller_test.rb
+++ b/test/functional/repositories_filesystem_controller_test.rb
@@ -87,10 +87,14 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
       with_settings :repositories_encodings => 'UTF-16' do
         get :entry, :id => PRJ_ID, :path => ['japanese', 'utf-16.txt']
         assert_response :success
-        assert_tag :tag => 'th',
-                   :content => '2',
-                   :attributes => { :class => 'line-num' },
-                   :sibling => { :tag => 'td', :content => /japanese/ }
+
+        assert_select "tr" do
+          assert_select "th.line-num" do
+            assert_select "a", :text => /2/
+          end
+          assert_select "td", :content => /japanese/
+        end
+
       end
     end