Commit 9baa3104 authored by Eric Davis's avatar Eric Davis

Fixed test by replacing assert_tag with assert_select

parent b95c5261
...@@ -87,10 +87,14 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase ...@@ -87,10 +87,14 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
with_settings :repositories_encodings => 'UTF-16' do with_settings :repositories_encodings => 'UTF-16' do
get :entry, :id => PRJ_ID, :path => ['japanese', 'utf-16.txt'] get :entry, :id => PRJ_ID, :path => ['japanese', 'utf-16.txt']
assert_response :success assert_response :success
assert_tag :tag => 'th',
:content => '2', assert_select "tr" do
:attributes => { :class => 'line-num' }, assert_select "th.line-num" do
:sibling => { :tag => 'td', :content => /japanese/ } assert_select "a", :text => /2/
end
assert_select "td", :content => /japanese/
end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment