summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-05 15:01:39 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-05 15:01:39 +0000
commit0f8680adfd5ec0486505fb1491cc38a1f45a4a8a (patch)
tree6e5349340f17d2a060bd6c9b06aa24c8585ccbc4 /test
parente86b8febdc79626d441d958e56856ae22b7604ae (diff)
downloadredmine-0f8680adfd5ec0486505fb1491cc38a1f45a4a8a.tar.gz
redmine-0f8680adfd5ec0486505fb1491cc38a1f45a4a8a.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index d8f29ec8b..a781b5c0d 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -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/ }