summaryrefslogtreecommitdiffstats
path: root/test/unit/news_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-28 05:33:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-28 05:33:46 +0000
commitc3d079aeb81467a0bc2c290f22fee1a8bd046074 (patch)
tree88a59c363d7941a10458dd6393fb48580d7f4dfb /test/unit/news_test.rb
parent586661caad052a8ce7d15e58919e81f370bbb142 (diff)
downloadredmine-c3d079aeb81467a0bc2c290f22fee1a8bd046074.tar.gz
redmine-c3d079aeb81467a0bc2c290f22fee1a8bd046074.zip
Fixed potential test failure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9027 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/news_test.rb')
-rw-r--r--test/unit/news_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/news_test.rb b/test/unit/news_test.rb
index fd0063efb..e8c223264 100644
--- a/test/unit/news_test.rb
+++ b/test/unit/news_test.rb
@@ -30,7 +30,7 @@ class NewsTest < ActiveSupport::TestCase
def test_create_should_send_email_notification
ActionMailer::Base.deliveries.clear
Setting.notified_events << 'news_added'
- news = Project.find(:first).news.new(valid_news)
+ news = Project.find(1).news.new(valid_news)
assert news.save
assert_equal 1, ActionMailer::Base.deliveries.size