Mercurial > hg > soundsoftware-site
comparison test/functional/.svn/text-base/attachments_controller_test.rb.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 513646585e45 |
children | af80e5618e9b 8661b858af72 |
comparison
equal
deleted
inserted
replaced
22:40f7cfd4df19 | 37:94944d00e43c |
---|---|
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 |