Commit 7fac67da0b74e03e62c7afb7a9c5da470a38d909
1 parent
4ade4733
Exists in
master
and in
29 other branches
ActionItem21: testing attribution of "last changed by" on article creation
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@990 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
test/functional/cms_controller_test.rb
... | ... | @@ -81,7 +81,13 @@ class CmsControllerTest < Test::Unit::TestCase |
81 | 81 | end |
82 | 82 | |
83 | 83 | should 'set last_changed_by when creating article' do |
84 | - flunk 'pending' | |
84 | + login_as(profile.identifier) | |
85 | + | |
86 | + post :new, :profile => profile.identifier, :article => { :name => 'changed by me', :body => 'content ...' } | |
87 | + | |
88 | + a = profile.articles.find_by_path('changed-by-me') | |
89 | + assert_not_nil a | |
90 | + assert_equal profile, a.last_changed_by | |
85 | 91 | end |
86 | 92 | |
87 | 93 | should 'set last_changed_by when updating article' do | ... | ... |