Mercurial > hg > soundsoftware-site
comparison test/functional/attachments_controller_test.rb @ 51:371eac10df0b live
* Merge from "cannam" branch. This includes update to Redmine trunk, plus welcome/tip-of-the-day from luisf branch.
author | Chris Cannam |
---|---|
date | Wed, 24 Nov 2010 12:20:08 +0000 |
parents | 94944d00e43c |
children | af80e5618e9b 8661b858af72 |
comparison
equal
deleted
inserted
replaced
34:09b1d4349da3 | 51:371eac10df0b |
---|---|
93 | 93 |
94 assert_difference 'issue.attachments.count', -1 do | 94 assert_difference 'issue.attachments.count', -1 do |
95 post :destroy, :id => 1 | 95 post :destroy, :id => 1 |
96 end | 96 end |
97 # no referrer | 97 # no referrer |
98 assert_redirected_to 'projects/ecookbook' | 98 assert_redirected_to '/projects/ecookbook' |
99 assert_nil Attachment.find_by_id(1) | 99 assert_nil Attachment.find_by_id(1) |
100 j = issue.journals.find(:first, :order => 'created_on DESC') | 100 j = issue.journals.find(:first, :order => 'created_on DESC') |
101 assert_equal 'attachment', j.details.first.property | 101 assert_equal 'attachment', j.details.first.property |
102 assert_equal '1', j.details.first.prop_key | 102 assert_equal '1', j.details.first.prop_key |
103 assert_equal 'error281.txt', j.details.first.old_value | 103 assert_equal 'error281.txt', j.details.first.old_value |