##// END OF EJS Templates
Do not mass create API keys for existing users....
Do not mass create API keys for existing users. They will be created on the fly if needed, just like for new users. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3221 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2796:38dc4d1cf954
r3107:edab0f0cbb85
Show More
wiki_test.rb
46 lines | 1.5 KiB | text/x-ruby | RubyLexer
Jean-Philippe Lang
Sets file encoding to utf-8 for ruby 1.9....
r2796 # encoding: utf-8
#
Jean-Philippe Lang
wiki branch merged into trunk...
r320 # redMine - project management software
# Copyright (C) 2006-2007 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# 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.
require File.dirname(__FILE__) + '/../test_helper'
Eric Davis
Upgraded to Rails 2.3.4 (#3597)...
r2773 class WikiTest < ActiveSupport::TestCase
Jean-Philippe Lang
wiki branch merged into trunk...
r320 fixtures :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
Jean-Philippe Lang
Adds missing native eol properties....
r2781
def test_create
Jean-Philippe Lang
wiki branch merged into trunk...
r320 wiki = Wiki.new(:project => Project.find(2))
assert !wiki.save
assert_equal 1, wiki.errors.count
Jean-Philippe Lang
Adds missing native eol properties....
r2781 wiki.start_page = "Start page"
assert wiki.save
end
Jean-Philippe Lang
wiki branch merged into trunk...
r320
def test_update
@wiki = Wiki.find(1)
@wiki.start_page = "Another start page"
assert @wiki.save
@wiki.reload
assert_equal "Another start page", @wiki.start_page
end
Jean-Philippe Lang
Fixed: Title with non-ascii characters breaks wiki...
r794
def test_titleize
assert_equal 'Page_title_with_CAPITALES', Wiki.titleize('page title with CAPITALES')
assert_equal 'テスト', Wiki.titleize('テスト')
end
Jean-Philippe Lang
wiki branch merged into trunk...
r320 end