summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-08 13:01:39 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-08 13:01:39 +0000
commit62901c05f004978ed3db383bccdf13befaa32a0b (patch)
tree2f7758cc2fa3b7ff4ad99f2f8102eaf274301db2 /test/functional
parent065e305f79816628d5058ad819d5f69173cea851 (diff)
downloadredmine-62901c05f004978ed3db383bccdf13befaa32a0b.tar.gz
redmine-62901c05f004978ed3db383bccdf13befaa32a0b.zip
fix source indent of PreviewsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20296 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/previews_controller_test.rb30
1 files changed, 24 insertions, 6 deletions
diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb
index e54d826ac..17efb63f6 100644
--- a/test/functional/previews_controller_test.rb
+++ b/test/functional/previews_controller_test.rb
@@ -32,21 +32,27 @@ class PreviewsControllerTest < Redmine::ControllerTest
def test_preview_new_issue_description
@request.session[:user_id] = 2
- post :issue, :params => {
+ post(
+ :issue,
+ :params => {
:project_id => '1',
:text => 'Foo'
}
+ )
assert_response :success
assert_select 'p', :text => 'Foo'
end
def test_preview_issue_description
@request.session[:user_id] = 2
- post :issue, :params => {
+ post(
+ :issue,
+ :params => {
:project_id => '1',
:issue_id => 1,
:text => 'Unable to print recipes'
}
+ )
assert_response :success
assert_select 'p', :text => 'Unable to print recipes'
@@ -54,11 +60,14 @@ class PreviewsControllerTest < Redmine::ControllerTest
def test_preview_issue_notes
@request.session[:user_id] = 2
- post :issue, :params => {
+ post(
+ :issue,
+ :params => {
:project_id => '1',
:id => 1,
:text => 'Foo'
}
+ )
assert_response :success
assert_select 'p', :text => 'Foo'
end
@@ -66,31 +75,40 @@ class PreviewsControllerTest < Redmine::ControllerTest
def test_preview_issue_notes_should_support_links_to_existing_attachments
Attachment.generate!(:container => Issue.find(1), :filename => 'foo.bar')
@request.session[:user_id] = 2
- post :issue, :params => {
+ post(
+ :issue,
+ :params => {
:project_id => '1',
:issue_id => 1,
:field => 'notes',
:text => 'attachment:foo.bar'
}
+ )
assert_response :success
assert_select 'a.attachment', :text => 'foo.bar'
end
def test_preview_new_news
- get :news, :params => {
+ get(
+ :news,
+ :params => {
:project_id => 1,
:text => 'News description',
}
+ )
assert_response :success
assert_select 'p', :text => /News description/
end
def test_preview_existing_news
- get :news, :params => {
+ get(
+ :news,
+ :params => {
:project_id => 1,
:id => 2,
:text => 'News description'
}
+ )
assert_response :success
assert_select 'p', :text => /News description/
end