summaryrefslogtreecommitdiffstats
path: root/test/unit/wiki_page_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make sure that something was actually deleted.Jean-Philippe Lang2017-07-261-3/+8
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16890 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Get rid of acts_as_versioned.Jean-Philippe Lang2017-07-261-1/+1
| | | | | | WikiContent::Version becomes WikiContentVersion. git-svn-id: http://svn.redmine.org/redmine/trunk@16889 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use assert_nil instead of assert_equal.Jean-Philippe Lang2016-12-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16060 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Updates copyright for 2016.Jean-Philippe Lang2016-03-131-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15238 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed that moving a wiki page with a child raises an error when target wiki ↵Jean-Philippe Lang2016-01-301-0/+18
| | | | | | contains a page with the same name as the child (#21900). git-svn-id: http://svn.redmine.org/redmine/trunk@15130 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces a piggy back query with an association for loading wiki pages updates.Jean-Philippe Lang2015-09-281-7/+7
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@14625 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2015-01-111-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13872 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Move wiki page to other project (#5450).Jean-Philippe Lang2014-11-231-0/+20
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@13643 e93f8b46-1217-0410-a6f0-8f06a7374b81
* update copyright year (#15977)Toshi MARUYAMA2014-01-291-1/+1
| | | | | | Contributed by Daniel Felix. git-svn-id: http://svn.redmine.org/redmine/trunk@12736 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated find_all_by_* at WikiPageTestToshi MARUYAMA2014-01-091-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12545 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated find_all_by_* at WikiPageTestToshi MARUYAMA2014-01-081-2/+2
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12535 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails4: replace deprecated Relation#first with finder options at WikiPageTestToshi MARUYAMA2014-01-081-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@12516 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright for 2013 (#12788).Jean-Philippe Lang2013-01-121-1/+1
| | | | | | Patch by Daniel Felix. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11169 e93f8b46-1217-0410-a6f0-8f06a7374b81
* REST API for retrieving wiki pages (#7082).Jean-Philippe Lang2012-10-251-0/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10716 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Handle deleted wiki page versions (#10852).Jean-Philippe Lang2012-10-211-0/+10
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10684 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds a "depth" option to the child_pages macro (#10789).Jean-Philippe Lang2012-09-161-0/+18
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10401 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Copyright update.Jean-Philippe Lang2012-05-051-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9636 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Changed assertions to make them work with Rails2/3 ruby1.8/1.9 different ↵Jean-Philippe Lang2012-03-051-6/+6
| | | | | | behaviours. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9107 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Rails3: test: replace deprecated Errors#on to Errors#[] and join with to_s ↵Toshi MARUYAMA2011-12-091-4/+6
| | | | | | | | | at test/unit/wiki_page_test.rb On Rails2, Errors#[] returns single error if one error raises. But, on Rails3, Errors#[] always returns the array. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8134 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fixed test_updated_on_eager_load.Jean-Philippe Lang2011-12-031-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8048 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add gmtime at unit wiki page "test_updated_on_eager_load" for Rails3 ↵Toshi MARUYAMA2011-12-031-0/+1
| | | | | | compatibility git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8040 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove trailing white-spaces from unit wiki page test.Toshi MARUYAMA2011-05-171-18/+18
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5811 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Moved wiki page updated_on eager load to a scope and fixed timestamp titles ↵Jean-Philippe Lang2011-03-121-2/+9
| | | | | | on wiki page index (#7818). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5098 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050Jean-Baptiste Barth2010-12-121-1/+1
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Makes the wiki sidebar editable (#5208).Jean-Philippe Lang2010-04-111-0/+7
| | | | | | The content of the wiki page named 'Sidebar' is rendered in the sidebar if it exists. Permission to edit protected pages is required to create this page. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3632 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds missing native eol properties.Jean-Philippe Lang2009-09-201-4/+4
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2895 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Upgraded to Rails 2.3.4 (#3597)Eric Davis2009-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Ran the Rails upgrade * Upgraded to Rails Engines 2.3.2 * Added a plugin to let Engines override application views. * Converted tests to use the new classes: ** ActionController::TestCase for functional ** ActiveSupport::TestCase for units * Converted ActiveRecord::Error message to a string. * ActiveRecord grouping returns an ordered hash which doesn't have #sort! * Updated the I18n storage_units format. * Added some default initializers from a fresh rails app * Changed the order of check_box_tags and hidden_field_tags. The hidden tag needs to appear first in Rails 2.3, otherwise it will override any value in the check_box_tag. * Removed the custom handler for when the cookie store is tampered with. Rails 2.3 removed the TamperedWithCookie exception and instead Rails will not load the data from it when it's been tampered with (e.g. no user login). * Fixed mail layouts, 2.3 has problems with implicit multipart emails that use layouts. Also removed some custom Redmine mailer code. * Fixed a bug that occurred in tests where the "required" span tag would be added to the :field_status translation. This resulted in an email string of: <li>Status<span class="required"> *</span><span class="required"> *</span> Instead of: <li>Status: New</li> git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2887 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Ask user what to do with child pages when deleting a parent wiki page (#3202).Jean-Philippe Lang2009-04-211-0/+14
| | | | | | | | | 3 options are available: * move child pages as root pages * move child pages to another parent page * delete all descendants git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2676 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.Jean-Philippe Lang2009-02-211-3/+3
| | | | git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Wiki page hierarchy (#528). Parent page can be assigned on Rename screen.Jean-Philippe Lang2008-07-261-0/+44
| | | | git-svn-id: http://redmine.rubyforge.org/svn/trunk@1698 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Added the ability to destroy wiki pages (content and its history are deleted ↵Jean-Philippe Lang2007-05-251-1/+10
| | | | | | | | from the database). This permission has to be explicitly given (Roles & Permissions -> Wiki pages/Delete). git-svn-id: http://redmine.rubyforge.org/svn/trunk@540 e93f8b46-1217-0410-a6f0-8f06a7374b81
* wiki branch merged into trunkJean-Philippe Lang2007-03-101-0/+50
git-svn-id: http://redmine.rubyforge.org/svn/trunk@323 e93f8b46-1217-0410-a6f0-8f06a7374b81