mirror of
https://github.com/redmine/redmine.git
synced 2025-11-18 03:00:52 +01:00
shorten long line of AttachmentFieldFormatTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20524 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -134,9 +134,16 @@ class AttachmentFieldFormatTest < Redmine::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
assert_nil attachment.container_id
|
assert_nil attachment.container_id
|
||||||
assert_select 'input[name=?][value=?][type=hidden]', "issue[custom_field_values][#{@field.id}][p0][token]", attachment.token
|
assert_select(
|
||||||
assert_select 'input[name=?][value=?]', "issue[custom_field_values][#{@field.id}][p0][filename]", 'testfile.txt'
|
'input[name=?][value=?][type=hidden]',
|
||||||
|
"issue[custom_field_values][#{@field.id}][p0][token]",
|
||||||
|
attachment.token
|
||||||
|
)
|
||||||
|
assert_select(
|
||||||
|
'input[name=?][value=?]',
|
||||||
|
"issue[custom_field_values][#{@field.id}][p0][filename]",
|
||||||
|
'testfile.txt'
|
||||||
|
)
|
||||||
issue = new_record(Issue) do
|
issue = new_record(Issue) do
|
||||||
assert_no_difference 'Attachment.count' do
|
assert_no_difference 'Attachment.count' do
|
||||||
post '/projects/ecookbook/issues', :params => {
|
post '/projects/ecookbook/issues', :params => {
|
||||||
|
|||||||
Reference in New Issue
Block a user