Fixed test by replacing assert_tag with assert_select
This commit is contained in:
parent
b95c526151
commit
9baa310486
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user