remove trailing white-spaces from unit issues helper test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5804 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-16 22:56:46 +00:00
parent 5e1576b8b4
commit a955a5140b
1 changed files with 7 additions and 7 deletions

View File

@ -5,12 +5,12 @@
# modify it under the terms of the GNU General Public License # modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 # as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. # of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@ -43,25 +43,25 @@ class IssuesHelperTest < HelperTestCase
def request def request
@request ||= ActionController::TestRequest.new @request ||= ActionController::TestRequest.new
end end
def test_issue_heading def test_issue_heading
assert_equal "Bug #1", issue_heading(Issue.find(1)) assert_equal "Bug #1", issue_heading(Issue.find(1))
end end
def test_issues_destroy_confirmation_message_with_one_root_issue def test_issues_destroy_confirmation_message_with_one_root_issue
assert_equal l(:text_issues_destroy_confirmation), issues_destroy_confirmation_message(Issue.find(1)) assert_equal l(:text_issues_destroy_confirmation), issues_destroy_confirmation_message(Issue.find(1))
end end
def test_issues_destroy_confirmation_message_with_an_arrayt_of_root_issues def test_issues_destroy_confirmation_message_with_an_arrayt_of_root_issues
assert_equal l(:text_issues_destroy_confirmation), issues_destroy_confirmation_message(Issue.find([1, 2])) assert_equal l(:text_issues_destroy_confirmation), issues_destroy_confirmation_message(Issue.find([1, 2]))
end end
def test_issues_destroy_confirmation_message_with_one_parent_issue def test_issues_destroy_confirmation_message_with_one_parent_issue
Issue.find(2).update_attribute :parent_issue_id, 1 Issue.find(2).update_attribute :parent_issue_id, 1
assert_equal l(:text_issues_destroy_confirmation) + "\n" + l(:text_issues_destroy_descendants_confirmation, :count => 1), assert_equal l(:text_issues_destroy_confirmation) + "\n" + l(:text_issues_destroy_descendants_confirmation, :count => 1),
issues_destroy_confirmation_message(Issue.find(1)) issues_destroy_confirmation_message(Issue.find(1))
end end
def test_issues_destroy_confirmation_message_with_one_parent_issue_and_its_child def test_issues_destroy_confirmation_message_with_one_parent_issue_and_its_child
Issue.find(2).update_attribute :parent_issue_id, 1 Issue.find(2).update_attribute :parent_issue_id, 1
assert_equal l(:text_issues_destroy_confirmation), issues_destroy_confirmation_message(Issue.find([1, 2])) assert_equal l(:text_issues_destroy_confirmation), issues_destroy_confirmation_message(Issue.find([1, 2]))