Commit graph

79 commits

Author SHA1 Message Date
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