Commit 0f8680ad authored by Toshi MARUYAMA's avatar Toshi MARUYAMA

scm: mercurial: fix comment and change // to '' some strings of functional test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4631 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent e86b8feb
......@@ -50,9 +50,9 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
assert_template 'show'
assert_not_nil assigns(:entries)
assert_equal 3, assigns(:entries).size
assert assigns(:entries).detect {|e| e.name == 'images' && e.kind == 'dir'}
assert assigns(:entries).detect {|e| e.name == 'images' && e.kind == 'dir'}
assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'}
assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'}
assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'}
end
def test_show_directory
......@@ -86,10 +86,10 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
get :entry, :id => 3, :path => ['sources', 'watchers_controller.rb']
assert_response :success
assert_template 'entry'
# Line 19
# Line 10
assert_tag :tag => 'th',
:content => /10/,
:attributes => { :class => /line-num/ },
:content => '10',
:attributes => { :class => 'line-num' },
:sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ }
end
......@@ -115,7 +115,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
assert_template 'diff'
# Line 22 removed
assert_tag :tag => 'th',
:content => /22/,
:content => '22',
:sibling => { :tag => 'td',
:attributes => { :class => /diff_out/ },
:content => /def remove/ }
......
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