mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-01 03:57:15 +00:00
fix source indent of AttachmentFieldFormatTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20542 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
133d141a7b
commit
f3789eed52
@ -54,7 +54,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
def test_create_with_attachment
|
||||
issue = new_record(Issue) do
|
||||
assert_difference 'Attachment.count' do
|
||||
post '/projects/ecookbook/issues', :params => {
|
||||
post(
|
||||
'/projects/ecookbook/issues',
|
||||
:params => {
|
||||
:issue => {
|
||||
:subject => "Subject",
|
||||
:custom_field_values => {
|
||||
@ -65,6 +67,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
assert_response 302
|
||||
end
|
||||
end
|
||||
@ -94,7 +97,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
def test_create_without_attachment
|
||||
issue = new_record(Issue) do
|
||||
assert_no_difference 'Attachment.count' do
|
||||
post '/projects/ecookbook/issues', :params => {
|
||||
post(
|
||||
'/projects/ecookbook/issues',
|
||||
:params => {
|
||||
:issue => {
|
||||
:subject => "Subject",
|
||||
:custom_field_values => {
|
||||
@ -102,6 +107,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
assert_response 302
|
||||
end
|
||||
end
|
||||
@ -120,7 +126,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
def test_failure_on_create_should_preserve_attachment
|
||||
attachment = new_record(Attachment) do
|
||||
assert_no_difference 'Issue.count' do
|
||||
post '/projects/ecookbook/issues', :params => {
|
||||
post(
|
||||
'/projects/ecookbook/issues',
|
||||
:params => {
|
||||
:issue => {
|
||||
:subject => "",
|
||||
:custom_field_values => {
|
||||
@ -128,6 +136,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
assert_response :success
|
||||
assert_select_error /Subject cannot be blank/
|
||||
end
|
||||
@ -146,7 +155,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
)
|
||||
issue = new_record(Issue) do
|
||||
assert_no_difference 'Attachment.count' do
|
||||
post '/projects/ecookbook/issues', :params => {
|
||||
post(
|
||||
'/projects/ecookbook/issues',
|
||||
:params => {
|
||||
:issue => {
|
||||
:subject => "Subject",
|
||||
:custom_field_values => {
|
||||
@ -154,6 +165,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
assert_response 302
|
||||
end
|
||||
end
|
||||
@ -170,7 +182,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
|
||||
attachment = new_record(Attachment) do
|
||||
assert_difference 'Issue.count' do
|
||||
post '/projects/ecookbook/issues', :params => {
|
||||
post(
|
||||
'/projects/ecookbook/issues',
|
||||
:params => {
|
||||
:issue => {
|
||||
:subject => "Blank",
|
||||
:custom_field_values => {
|
||||
@ -178,6 +192,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
assert_response 302
|
||||
end
|
||||
end
|
||||
@ -189,7 +204,9 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
|
||||
attachment = new_record(Attachment) do
|
||||
assert_no_difference 'Issue.count' do
|
||||
post '/projects/ecookbook/issues', :params => {
|
||||
post(
|
||||
'/projects/ecookbook/issues',
|
||||
:params => {
|
||||
:issue => {
|
||||
:subject => "Blank",
|
||||
:custom_field_values => {
|
||||
@ -197,6 +214,7 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user