mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code cleanup: rubocop: fix Layout/SpaceBeforeComma in test/helpers/application_helper_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18838 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
05ef773897
commit
accab3c755
@ -249,7 +249,6 @@ Layout/SpaceAroundOperators:
|
|||||||
Layout/SpaceBeforeComma:
|
Layout/SpaceBeforeComma:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/redmine/export/pdf.rb'
|
- 'lib/redmine/export/pdf.rb'
|
||||||
- 'test/helpers/application_helper_test.rb'
|
|
||||||
- 'test/mocks/open_id_authentication_mock.rb'
|
- 'test/mocks/open_id_authentication_mock.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
|||||||
@ -691,7 +691,7 @@ class ApplicationHelperTest < Redmine::HelperTest
|
|||||||
:action => 'revision',
|
:action => 'revision',
|
||||||
:id => 'subproject1',
|
:id => 'subproject1',
|
||||||
:repository_id => r.id,
|
:repository_id => r.id,
|
||||||
:rev => '123' ,
|
:rev => '123',
|
||||||
},
|
},
|
||||||
:class => 'changeset', :title => 'test commit')
|
:class => 'changeset', :title => 'test commit')
|
||||||
changeset_link_commit = link_to('abcd',
|
changeset_link_commit = link_to('abcd',
|
||||||
@ -700,7 +700,7 @@ class ApplicationHelperTest < Redmine::HelperTest
|
|||||||
:action => 'revision',
|
:action => 'revision',
|
||||||
:id => 'subproject1',
|
:id => 'subproject1',
|
||||||
:repository_id => r.id,
|
:repository_id => r.id,
|
||||||
:rev => 'abcd' ,
|
:rev => 'abcd',
|
||||||
},
|
},
|
||||||
:class => 'changeset', :title => 'test commit')
|
:class => 'changeset', :title => 'test commit')
|
||||||
to_test = {
|
to_test = {
|
||||||
@ -740,7 +740,7 @@ class ApplicationHelperTest < Redmine::HelperTest
|
|||||||
|
|
||||||
with_settings :text_formatting => 'markdown' do
|
with_settings :text_formatting => 'markdown' do
|
||||||
raw = "attachment:image@2x.png should not be parsed in image@2x.png"
|
raw = "attachment:image@2x.png should not be parsed in image@2x.png"
|
||||||
assert_match %r{<p><a class="attachment" href="/attachments/#{attachment.id}">image@2x.png</a> should not be parsed in image@2x.png</p>} ,
|
assert_match %r{<p><a class="attachment" href="/attachments/#{attachment.id}">image@2x.png</a> should not be parsed in image@2x.png</p>},
|
||||||
textilizable(raw, :attachments => [attachment])
|
textilizable(raw, :attachments => [attachment])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user