summaryrefslogtreecommitdiffstats
path: root/test/helpers/application_helper_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 14:28:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 14:28:36 +0000
commit07e9a824f02a4f1f97d073226784fdeb48a1fa3f (patch)
tree8a5c71294b61288406285968827f6390b0225374 /test/helpers/application_helper_test.rb
parentdc2ee7693c79bd201043b22c24a353f816f8c748 (diff)
downloadredmine-07e9a824f02a4f1f97d073226784fdeb48a1fa3f.tar.gz
redmine-07e9a824f02a4f1f97d073226784fdeb48a1fa3f.zip
cleanup: rubocop: fix Layout/SpaceInsideParens in test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19207 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers/application_helper_test.rb')
-rw-r--r--test/helpers/application_helper_test.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index e9a95972c..1d5f70a62 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1017,7 +1017,7 @@ class ApplicationHelperTest < Redmine::HelperTest
end
def test_wiki_links_within_wiki_page_context
- page = WikiPage.find_by_title('Another_page' )
+ page = WikiPage.find_by_title('Another_page')
to_test = {
'[[CookBook documentation]]' =>
link_to("CookBook documentation",
@@ -1073,7 +1073,7 @@ class ApplicationHelperTest < Redmine::HelperTest
@project = Project.find(1)
to_test.each do |text, result|
assert_equal "<p>#{result}</p>",
- textilizable(WikiContent.new( :text => text, :page => page ), :text)
+ textilizable(WikiContent.new(:text => text, :page => page), :text)
end
end
@@ -1306,12 +1306,10 @@ class ApplicationHelperTest < Redmine::HelperTest
end
def test_headings_in_wiki_single_page_export_should_be_prepended_with_page_title
- page = WikiPage.new( :title => 'Page Title', :wiki_id => 1 )
- content = WikiContent.new( :text => 'h1. Some heading', :page => page )
-
+ page = WikiPage.new(:title => 'Page Title', :wiki_id => 1)
+ content = WikiContent.new(:text => 'h1. Some heading', :page => page)
expected = %|<a name="Page_Title_Some-heading"></a>\n<h1 >Some heading<a href="#Page_Title_Some-heading" class="wiki-anchor">&para;</a></h1>|
-
- assert_equal expected, textilizable(content, :text, :wiki_links => :anchor )
+ assert_equal expected, textilizable(content, :text, :wiki_links => :anchor)
end
def test_table_of_content