summaryrefslogtreecommitdiffstats
path: root/test/unit/comment_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-29 10:09:46 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-29 10:09:46 +0000
commit04864726622cea888742356b0b7849ed2b3788a9 (patch)
tree8fb32da7325da9b95fc6068c3778f10a6376f61f /test/unit/comment_test.rb
parent578d8cc63e3298727d55b4ab36f604abd91739f6 (diff)
downloadredmine-04864726622cea888742356b0b7849ed2b3788a9.tar.gz
redmine-04864726622cea888742356b0b7849ed2b3788a9.zip
remove trailing white-spaces from test/unit/comment_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6723 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/comment_test.rb')
-rw-r--r--test/unit/comment_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb
index 02be8fc5c..371dcea01 100644
--- a/test/unit/comment_test.rb
+++ b/test/unit/comment_test.rb
@@ -5,12 +5,12 @@
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
-#
+#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -24,18 +24,18 @@ class CommentTest < ActiveSupport::TestCase
@jsmith = User.find(2)
@news = News.find(1)
end
-
+
def test_create
comment = Comment.new(:commented => @news, :author => @jsmith, :comments => "my comment")
assert comment.save
@news.reload
assert_equal 2, @news.comments_count
end
-
+
def test_create_should_send_notification
Setting.notified_events << 'news_comment_added'
Watcher.create!(:watchable => @news, :user => @jsmith)
-
+
assert_difference 'ActionMailer::Base.deliveries.size' do
Comment.create!(:commented => @news, :author => @jsmith, :comments => "my comment")
end
@@ -46,7 +46,7 @@ class CommentTest < ActiveSupport::TestCase
assert !comment.save
assert_equal 2, comment.errors.length
end
-
+
def test_destroy
comment = Comment.find(1)
assert comment.destroy