@@ -467,6 +467,17 JSON | |||
|
467 | 467 | assert_equal 'Project changed', issue.subject |
|
468 | 468 | end |
|
469 | 469 | |
|
470 | test "PUT /issues/:id.xml with notes only" do | |
|
471 | assert_difference('Journal.count') do | |
|
472 | put '/issues/6.xml', | |
|
473 | {:issue => {:notes => 'Notes only'}}, | |
|
474 | credentials('jsmith') | |
|
475 | end | |
|
476 | ||
|
477 | journal = Journal.last | |
|
478 | assert_equal "Notes only", journal.notes | |
|
479 | end | |
|
480 | ||
|
470 | 481 | test "PUT /issues/:id.xml with failed update" do |
|
471 | 482 | put '/issues/6.xml', {:issue => {:subject => ''}}, credentials('jsmith') |
|
472 | 483 |
General Comments 0
You need to be logged in to leave comments.
Login now