Commit graph

171 commits

Author SHA1 Message Date
Alexey Verkhovsky 5ea3f93bf9 author links on print page are smart about whether they are being exported or just displayed in the browser 2005-01-30 05:33:05 +00:00
Alexey Verkhovsky a0303d1eea Search 2005-01-30 03:17:02 +00:00
Alexey Verkhovsky 22a8ebb86d Droppped obsolewte require 'chunks/match' [Denis] 2005-01-30 02:57:53 +00:00
Alexey Verkhovsky 3c1990a42a Not all incarnations of pdflatex know the --output-directory option [Denis] 2005-01-30 02:56:03 +00:00
Alexey Verkhovsky 63cf09059b Merged new_web action into create_web 2005-01-28 03:44:36 +00:00
Alexey Verkhovsky 16dcdb6e0e A friendly confirmation when a new wiki is set up 2005-01-28 02:57:25 +00:00
Alexey Verkhovsky 83c6eadc0c Merged new_system action into create_system 2005-01-28 02:35:59 +00:00
Alexey Verkhovsky 88e52ab5a9 Extracted AdminController from WikiController 2005-01-28 01:24:31 +00:00
Alexey Verkhovsky 60dfbd72b7 renamde a test for authenticate with wrong password so that it does not duplicate the name of another test. 2005-01-28 00:52:37 +00:00
Alexey Verkhovsky 06daadc7df Reshaped "import wiki" feature from command-line to web interface 2005-01-27 03:55:19 +00:00
Alexey Verkhovsky 3b6566577c Massive change of SVN properties to deal with EOL style problem 2005-01-24 18:52:04 +00:00
Alexey Verkhovsky b747b611b3 Blocking of file uploads by admin 2005-01-24 01:04:00 +00:00
Alexey Verkhovsky 8d576bbbf7 test for Web constructor (lots of default values) 2005-01-24 00:50:46 +00:00
Alexey Verkhovsky 8d8deb8e76 "user interface" to allow or prohibit file uploads (not working, just the UI element) 2005-01-24 00:20:31 +00:00
Alexey Verkhovsky 584c4b39ef Preventing an endless loop in case test_helper is loaded twice
(note to self: _always_ enclose alias within unless method_defined?)
2005-01-23 19:12:57 +00:00
Alexey Verkhovsky 780891349a explicit action and test for edit_web 2005-01-23 18:30:33 +00:00
Alexey Verkhovsky 685874da83 when response is a file download, there is no need to check that it is well formed HTML (it's not, anyway) 2005-01-23 16:37:58 +00:00
Alexey Verkhovsky c8e459cbb0 Added a check for XML well-formedness to assert_success
(optional, enabled by uncommenting a variable at the top of test_helper.rb);
corrected some malformed templates (not all yet)
2005-01-23 16:34:27 +00:00
Alexey Verkhovsky a7bb047424 FileController refreshes references to files/pictures after an upload 2005-01-23 14:54:41 +00:00
Alexey Verkhovsky 14c114529a added test for upload 2005-01-23 14:32:10 +00:00
Alexey Verkhovsky 44eea43940 uploading pics when not found in the file yard (same as for files) 2005-01-23 13:42:56 +00:00
Alexey Verkhovsky 8263e4bfcd [RESTORES BUILD] Wiki link (in double square brackets) has precedence over autolinking URLs;
contents of wiki links are not passed to markup engines; got rid of bracketing mask method in the 
chunks parser (it was a feature that caused a lot of parsing grief for no good reason)
2005-01-23 05:19:39 +00:00
Alexey Verkhovsky 301464c4e4 new file (should have been included in the last commit) 2005-01-23 04:06:17 +00:00
Alexey Verkhovsky 39f854a11e display images from the file yard 2005-01-23 03:52:07 +00:00
Alexey Verkhovsky d6fe54f4ad [BREAKS BUILD] Links to pictures. Problem is, URIChunk thinks that index.jpg is a hyperlink to http://index.jp.
Also, commented out the code that was hiding rendering errors. This should be done at a different level.
2005-01-23 03:27:45 +00:00
Alexey Verkhovsky 1d82582c3b Extracted storage of files functionality from controller to an object called FileYard.
There is one file yard per web.
2005-01-23 01:36:51 +00:00
Alexey Verkhovsky 0d81292168 Rake's Test/Unit runner be damned 2005-01-23 00:48:00 +00:00
Alexey Verkhovsky e6c32bafc6 Wiki links to files point to the appropriate actions (file, pic) 2005-01-22 16:38:33 +00:00
Alexey Verkhovsky c30989c7eb Actions that send files to browser smartly determine content-type HTTP header by the file name extnsion 2005-01-22 14:58:43 +00:00
Alexey Verkhovsky e9a419c40f File download (primitive implementation) 2005-01-22 02:49:52 +00:00
Alexey Verkhovsky 9d90901cd0 URI rewriting to determine a controller based on an action name 2005-01-22 01:57:05 +00:00
Alexey Verkhovsky 12a34823a8 Beginnings of a FileController (serving the file upload feature) 2005-01-22 01:35:00 +00:00
Alexey Verkhovsky 92404470e8 Wiki link (square brackets) now knows its type (show, file or pic),
and does not mess up with Textile link hyperlink syntax
2005-01-22 00:39:03 +00:00
Alexey Verkhovsky 578becb609 uncommented a test that actually passes (WikiWord within Textile URL) 2005-01-21 22:43:13 +00:00
Alexey Verkhovsky 88d7dc832d Setting Content-Type to UTF-8, to be consistent with meta-data in the HTML itself 2005-01-21 19:41:46 +00:00
Alexey Verkhovsky e619e575ce extracted wiki fixture to test_helper (it still doesn't deserge a class of its own, but one day it might) 2005-01-21 19:40:04 +00:00
Alexey Verkhovsky dce2af06aa Autolink URLs like http://localhost:8000 (anything that has a schema like http:// and looks like a URL), in addition to internet URLs. 2005-01-20 21:34:27 +00:00
Alexey Verkhovsky 0d9d89ad3c URI rewriting should be very liberal towards page names 2005-01-20 01:00:47 +00:00
Alexey Verkhovsky 12aa4365ad Disabled a test that fails on RedCloth 2 2005-01-20 00:21:29 +00:00
Alexey Verkhovsky 97857409a9 Added -w to all shebangs [Florian Gross] 2005-01-20 00:05:23 +00:00
Alexey Verkhovsky 8eb35d4021 [RESTORES BUILD] URI parsing is smart about Instiki images again 2005-01-19 21:09:08 +00:00
Alexey Verkhovsky 11794e6f4f Fixed a test broken by lasy commit 2005-01-19 00:54:18 +00:00
Alexey Verkhovsky ca22e59c38 [BREAKS BUILD] Corrected and refactored revision_test.rb
Same story as with uri_test.rb; this test was skipped by Rake, because there was a syntax error in it.
Now there is no syntax error, but there is a failing test instead (introduced by changeset:48)
2005-01-18 22:32:50 +00:00
Alexey Verkhovsky 60c16e0be7 Corrected failing test 2005-01-18 20:29:10 +00:00
Alexey Verkhovsky fb2e77a2ce More tests in uri_test.rb 2005-01-18 19:15:48 +00:00
Alexey Verkhovsky 8bf050292a [BREAKS BUILD] Deleted a wrong require that was causing Rake to skip uri_test.rb (bug in Rake?). There was, as it turned out, a failing test there. 2005-01-18 18:55:40 +00:00
Alexey Verkhovsky 7c02805102 Unsuccessful save unlocks the page; some tweaks and debug-level logging in in return_to_last_remembered 2005-01-18 00:36:43 +00:00
Alexey Verkhovsky 73552b36a0 If there is a validation error, save action will redirect to the last known good location and set error message in a flash 2005-01-17 23:17:28 +00:00
Alexey Verkhovsky 5c8b738238 Added test at the service level, to see how well madeleine copes with errors. Looks like it does cope with them. 2005-01-17 22:42:45 +00:00
Alexey Verkhovsky cb1d8ed54f Controller-level test for the last revision (submit of an identical revision) 2005-01-17 21:31:26 +00:00
Alexey Verkhovsky 878a6336fb Page#revise raises ValidationError if a revision is exactly same as the page before 2005-01-17 21:27:38 +00:00
Alexey Verkhovsky 8f5ac3440a All controller actions are covered by tests [main success scenarios only - not really trying to break it yet] 2005-01-17 20:37:06 +00:00
Alexey Verkhovsky c50dd048e3 Corrected the binary_content method 2005-01-17 20:11:49 +00:00
Alexey Verkhovsky f28e572c65 Added a test for tex action 2005-01-17 20:03:49 +00:00
Alexey Verkhovsky 58f92caa19 Removed code that made it into Rails SVN 2005-01-17 18:28:01 +00:00
Alexey Verkhovsky 57df455d1d Removed accidentally duplicated code 2005-01-17 18:25:13 +00:00
Alexey Verkhovsky bd8e725578 Added assertions for the response content in pdf action; changed all output file names to include seconds 2005-01-17 18:09:13 +00:00
Alexey Verkhovsky 01c5a65405 Sorted out pdf action 2005-01-17 15:47:43 +00:00
Alexey Verkhovsky da3c060c89 Non-mutating operations should not be logged. 2005-01-16 23:51:59 +00:00
Alexey Verkhovsky 621b79db55 Tests for WikiService use default WikiService (with Madeleine persistence), not a WikiServiceWithNoPersistence. 2005-01-16 23:17:30 +00:00
Alexey Verkhovsky ab63f1449d Added shebangs and require 'test_helper' to all tests, so that they can be run standalone 2005-01-16 22:40:44 +00:00
Alexey Verkhovsky ef65e5e78a Fix to ticket 2.
When updating the last page revision in the "continuous revision" case, created_at should be used
instead of Time.now.
2005-01-16 22:27:09 +00:00
Alexey Verkhovsky da3674770e Moved Page#pretty_revised_on to the view (it is not a model method) 2005-01-16 22:19:28 +00:00
Alexey Verkhovsky 042391bfff Reformatted all the very long strings to fit 100 columns 2005-01-16 22:16:24 +00:00
Alexey Verkhovsky f559a17ba4 Renamed "mocks" to "stubs", cause these things are stubs, not mocks. 2005-01-16 21:49:27 +00:00
Alexey Verkhovsky 178f3f53ee Fixed rendering of URIs with port number; moved match.rb to test_helper (where it belongs) 2005-01-16 16:04:45 +00:00
Alexey Verkhovsky 832cfdf605 Extracted default layout 2005-01-16 15:00:11 +00:00
Alexey Verkhovsky 88b3a1ba08 Fixed a bug with system creation; also fixed a semi-hardcoded EXPORT_DIRECTORY path in controller 2005-01-16 01:11:08 +00:00
Alexey Verkhovsky 778e9420b5 Made pdf action callable, and wrote a naive test for it 2005-01-16 00:21:08 +00:00
Alexey Verkhovsky 10214ebb26 Defined externals (for Rails modules), replaced .cvsignore files with svn:ignore properties 2005-01-15 21:10:38 +00:00
Alexey Verkhovsky 223b2bec6c Initial import of the sources from SVN 2005-01-15 20:26:54 +00:00