Commit 067f66a95bb10e1895b4b2c90438a8af15619661
1 parent
3c168675
Exists in
master
and in
28 other branches
Fixing article author test
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
test/unit/article_test.rb
@@ -1371,6 +1371,7 @@ class ArticleTest < ActiveSupport::TestCase | @@ -1371,6 +1371,7 @@ class ArticleTest < ActiveSupport::TestCase | ||
1371 | a = profile.articles.create!(:name => 'a test article', :last_changed_by => author) | 1371 | a = profile.articles.create!(:name => 'a test article', :last_changed_by => author) |
1372 | assert_equal author.name, a.author_name | 1372 | assert_equal author.name, a.author_name |
1373 | author.destroy | 1373 | author.destroy |
1374 | + a.reload | ||
1374 | a.author_name = 'some name' | 1375 | a.author_name = 'some name' |
1375 | assert_equal 'some name', a.author_name | 1376 | assert_equal 'some name', a.author_name |
1376 | end | 1377 | end |