Commit Graph

450 Commits

Author SHA1 Message Date
Toshi MARUYAMA 3995ead92b test: route: move previews test in test_issues_extra_actions to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8352 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 22:49:56 +00:00
Toshi MARUYAMA 4b8ceb51e2 test: route: move versions test in projects test to routing/versions_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8351 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 13:03:14 +00:00
Toshi MARUYAMA cf2ad74ec7 test: route: move welcome test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8350 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 12:13:17 +00:00
Toshi MARUYAMA 6d3bbd4933 test: route: move users tests to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8349 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 10:57:45 +00:00
Toshi MARUYAMA 213978161b test: route: move roles tests to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8348 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 10:57:21 +00:00
Toshi MARUYAMA b19ea60b97 test: route: move auto_completes tests in test_issues_extra_actions to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8347 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 10:13:27 +00:00
Toshi MARUYAMA 79d227d34e test: route: move activities test in projects test to integration/routing/activities_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8346 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 10:12:53 +00:00
Toshi MARUYAMA bc7ed1e156 test: route: move timelogs tests to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8343 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 04:13:38 +00:00
Toshi MARUYAMA 904ec537b2 test: route: move members test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8342 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 04:13:14 +00:00
Toshi MARUYAMA ed933a28da test: route: move gantts test in test_issues_extra_actions to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8341 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 04:12:50 +00:00
Toshi MARUYAMA c7d96d1441 test: route: move repositories test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8340 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 04:12:25 +00:00
Toshi MARUYAMA ceaaf6d3a2 test: route: move versions test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8339 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 04:12:00 +00:00
Toshi MARUYAMA 1a626bcacd test: route: move files test in project to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8338 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 04:11:32 +00:00
Toshi MARUYAMA b6d6f5e382 test: route: move reports test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8337 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 01:41:43 +00:00
Toshi MARUYAMA dedbff3653 test: route: move issue_relations test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8336 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 01:41:17 +00:00
Toshi MARUYAMA e9ec49a705 test: route: move remaining calendars test in test_issues_extra_actions to routing/calendars_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8335 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 01:40:30 +00:00
Toshi MARUYAMA f37ee781fb test: route: move calendars test in test_issues_extra_actions to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8334 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 01:05:48 +00:00
Toshi MARUYAMA dd312d294a test: route: move journals test in test_issues_extra_actions to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8333 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 01:05:09 +00:00
Toshi MARUYAMA bb7854923d test: route: add 'my' test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-24 01:04:26 +00:00
Toshi MARUYAMA 23bafda164 test: route: move issue_moves test in test_issues_extra_actions to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8329 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 23:08:04 +00:00
Toshi MARUYAMA f6a9cf4326 test: route: move groups test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8328 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 23:07:40 +00:00
Toshi MARUYAMA fbf323bf51 test: route: move enumerations test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8327 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 23:07:17 +00:00
Toshi MARUYAMA c18d24434a test: route: add account test
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8326 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 23:06:52 +00:00
Toshi MARUYAMA 50b6ab9de2 test: route: fix duplicate "test_roles"
This is introduced by r8189 and r8230 in trunk.
So, this is not effect in 1.3-stable.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8325 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 12:19:54 +00:00
Toshi MARUYAMA e5275453db test: route: move documents test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8324 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 11:18:12 +00:00
Toshi MARUYAMA 413d98ca43 test: route: move messages test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8323 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 10:56:22 +00:00
Toshi MARUYAMA 260bc487aa code layout clean up test/integration/api_test/users_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8322 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 10:08:28 +00:00
Toshi MARUYAMA df2d2f3cf7 test: route: move custom_fields test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8321 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 10:08:05 +00:00
Toshi MARUYAMA a8186713ba test: route: move boards test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8320 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 10:07:39 +00:00
Toshi MARUYAMA 40eb962166 test: route: move admin test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8319 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 08:11:29 +00:00
Toshi MARUYAMA 4df7460ce6 test: route: move attachments test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8318 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 08:11:05 +00:00
Toshi MARUYAMA 3153897fde test: route: move activities test to new file
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8317 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-23 08:10:42 +00:00
Toshi MARUYAMA 2cf2f4964c test: replace "should_route" of "versions" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8274 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 08:13:19 +00:00
Toshi MARUYAMA 08c4b22988 test: replace "should_route" of "issue categories" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8273 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-18 08:12:40 +00:00
Toshi MARUYAMA 606c5f3093 test: replace "should_route" of "news" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8261 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 14:49:05 +00:00
Toshi MARUYAMA 06c8bbd342 test: replace "should_route" of "queries" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8260 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 14:06:27 +00:00
Toshi MARUYAMA a59e857d51 test: replace "should_route" of "timelogs (scoped under project and issues)" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8259 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 13:12:27 +00:00
Toshi MARUYAMA 83aad1dc04 test: replace "should_route" of "issue relations" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8257 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 11:55:09 +00:00
Toshi MARUYAMA 15f4e56c9d test: replace "should_route" of "issues" extra actions to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8256 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 11:54:37 +00:00
Toshi MARUYAMA 1f90b6fc94 test: replace "should_route" of "users" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8252 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 09:56:00 +00:00
Toshi MARUYAMA f443c01ba5 test: replace "should_route" of "projects" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8250 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-17 09:10:17 +00:00
Jean-Philippe Lang ad25e3807d Make sure that tests restore the attachments path to the tmp dir so that fixture files don't get deleted.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8248 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-16 17:52:47 +00:00
Toshi MARUYAMA 14b931eb4a test: replace "should_route" of "timelogs (scoped under issues)" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8247 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-16 12:11:05 +00:00
Toshi MARUYAMA bc548368e8 test: replace "should_route" of "roles" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8246 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-16 12:10:42 +00:00
Toshi MARUYAMA 5cfa9e735a test: replace "should_route" of "repositories" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8245 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-16 09:56:46 +00:00
Toshi MARUYAMA 0ef34804e8 test: replace "should_route" of "timelogs (scoped under project)" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8244 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-16 08:10:17 +00:00
Toshi MARUYAMA bfad07cd15 test: replace "should_route" of "wiki (singular, project's pages)" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8243 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-16 05:53:11 +00:00
Toshi MARUYAMA e2de7f2529 test: replace "should_route" of "timelogs (global)" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8242 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-16 04:01:44 +00:00
Toshi MARUYAMA 08e309ea46 test: replace "should_route" of "roles" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8230 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 11:10:33 +00:00
Toshi MARUYAMA f92141decb test: replace "should_route" of "messages" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8223 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 08:39:55 +00:00
Toshi MARUYAMA 64129a68cd test: replace "should_route" of "issues" form update to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8222 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 08:12:42 +00:00
Toshi MARUYAMA 6248689b89 test: replace "should_route" of "groups" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8221 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 07:06:37 +00:00
Toshi MARUYAMA f968acbfac test: replace "should_route" of "documents" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8220 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 07:06:11 +00:00
Toshi MARUYAMA 4d2a832fb6 test: replace "should_route" of "issues" REST actions to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8219 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 05:11:04 +00:00
Toshi MARUYAMA 64e960ae97 test: replace "should_route" of "issue reports" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8218 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 03:47:17 +00:00
Toshi MARUYAMA f0dd0acbf0 test: replace "should_route" of "members" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8217 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 02:56:22 +00:00
Toshi MARUYAMA 8ac56d13d7 test: replace "should_route" of "wikis (plural, admin setup)" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8216 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 01:48:26 +00:00
Toshi MARUYAMA f70a5397f2 test: replace "should_route" of "test_custom_fields" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8215 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-15 01:47:42 +00:00
Toshi MARUYAMA 08e8567e93 test: replace "should_route" of "boards" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8205 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 13:05:42 +00:00
Toshi MARUYAMA 98fb0dd565 test: replace "should_route" of "administration panel" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8204 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 13:05:08 +00:00
Toshi MARUYAMA e499904e3a test: replace "should_route" of "welcome" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8203 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 11:47:10 +00:00
Toshi MARUYAMA a61d7d053f test: replace "should_route" of "attachments" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8202 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 10:07:31 +00:00
Toshi MARUYAMA 0b4aed008c test: replace "should_route" of "activities" to "assert_routing" at integration/routing_test.rb
shoulda 2.11.3 does not support Rails2 legacy route on Rails 3.0.11.

<pre>
Error:
test: wikis (plural, admin setup) should route POST /projects/ladida/wiki/destroy
to/from {:action=>"destroy", :id=>"ladida", :controller=>"wikis"}. (RoutingTest):
NameError: uninitialized constant Routing
</pre>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8201 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 06:49:19 +00:00
Jean-Philippe Lang ed5f487cf5 Fixed broken issue form update when changing tracker.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8195 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-12 20:43:51 +00:00
Jean-Philippe Lang f9b6e57d24 Fixed error on project creation due to unrecognized route.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8192 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-12 18:05:13 +00:00
Jean-Philippe Lang 0471de41ff Resourcified enumerations.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8189 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-11 10:26:12 +00:00
Jean-Philippe Lang 83deaad8e4 Fixed tests with the valid login url.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8181 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 16:25:22 +00:00
Etienne Massip 7ba57e517b Explicitly declare all routes and deactivate default route.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8162 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 13:33:01 +00:00
Jean-Philippe Lang 7dc8cf9340 Changed IssuesController#destroy to DELETE only.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8151 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 09:20:23 +00:00
Jean-Philippe Lang ac6e404547 Moved bulk_edit/update routes into issues resources.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8148 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 08:45:52 +00:00
Jean-Philippe Lang 3dcd71a082 REST urls for user memberships.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8146 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-10 08:37:48 +00:00
Jean-Philippe Lang 532a76f78c Resourcified roles.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 23:29:58 +00:00
Jean-Philippe Lang b127f9157d Resourcified custom fields.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8144 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-09 22:58:30 +00:00
Jean-Philippe Lang 69a2431dd0 Dropped TimeEntryReportsController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8027 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-02 19:33:05 +00:00
Jean-Philippe Lang 2967023a0e Resourcified boards.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8020 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-01 21:14:09 +00:00
Jean-Philippe Lang 1cb7de5b5a Routes cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8019 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-01 19:08:49 +00:00
Jean-Philippe Lang 526736dedc Removed obsolete routes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8017 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-01 18:02:21 +00:00
Jean-Philippe Lang be3ff78a29 Additional assertion for documents routing tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8012 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-30 23:15:52 +00:00
Jean-Philippe Lang 96bccd4666 Updated documents routing tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8011 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-30 23:12:43 +00:00
Jean-Philippe Lang f680e7f8ac Adds routes for group users.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7946 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-27 10:47:36 +00:00
Toshi MARUYAMA be29227c12 reset Attachment.storage_path at the end of attachment tests
Attachment files are deleted when database data were deleted.
So, other tests fail.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7911 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-24 08:10:41 +00:00
Jean-Philippe Lang 34c73c7573 REST API for issue categories (#9553).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7882 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 17:09:01 +00:00
Jean-Philippe Lang 30556f8cbf Makes issue categories available in project REST API (#9553).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7880 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 14:55:44 +00:00
Jean-Philippe Lang 248b725875 Adds API response to /issue_statuses to get the list of all available statuses (#7180).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7878 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 14:25:58 +00:00
Jean-Philippe Lang 053adaef52 Adds API response to /trackers to get the list of all available trackers (#7181).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7877 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 14:17:43 +00:00
Jean-Philippe Lang 1341dd564b Prevent projects tests from deleting fixture files.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-19 16:28:06 +00:00
Etienne Massip ad9e486077 Make queries resources fully conform to common behavior (removed additonal routes) (#9108).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7657 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-26 18:00:56 +00:00
Etienne Massip 8f96f0c40d Refactor : convert queries to REST resources (also fixes #9108).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7649 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-24 20:19:26 +00:00
Etienne Massip a84f877099 Added 2 tests about passing custom field filter to /issues.xml
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7581 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-05 22:03:19 +00:00
Toshi MARUYAMA cf8135e451 Rails3: replace "all" fixtures at test/integration/lib/redmine/menu_manager_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7519 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 06:11:35 +00:00
Toshi MARUYAMA 233bdd7779 Rails3: replace "all" fixtures at test/integration/api_test/token_authentication_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7518 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 04:58:07 +00:00
Toshi MARUYAMA c9bd3394d0 Rails3: replace "all" fixtures at test/integration/api_test/http_basic_login_with_api_token_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7517 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 04:57:35 +00:00
Toshi MARUYAMA 250d4db29d Rails3: replace "all" fixtures at test/integration/api_test/http_basic_login_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7516 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 04:56:55 +00:00
Toshi MARUYAMA fa11b8babe Rails3: replace "all" fixtures at test/integration/api_test/disabled_rest_api_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7515 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 04:56:27 +00:00
Toshi MARUYAMA e92f202b50 remove fixtures from test/integration/lib/redmine/themes_test.rb
This test does not need fixtures.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7510 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 00:17:18 +00:00
Toshi MARUYAMA eff37ebd12 Rails3: replace "all" fixtures at test/integration/api_test/queries_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 00:16:49 +00:00
Toshi MARUYAMA 2fef102a99 Rails3: replace "all" fixtures at test/integration/api_test/versions_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7508 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-25 00:16:11 +00:00
Toshi MARUYAMA a66b509005 Rails3: replace "all" fixtures at test/integration/api_test/news_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7507 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 23:58:43 +00:00
Toshi MARUYAMA 45aaef4556 Rails3: replace "all" fixtures at test/integration/api_test/attachments_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7506 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 23:58:17 +00:00
Toshi MARUYAMA 3f85c47003 Rails3: replace "all" fixtures at test/integration/api_test/issue_relations_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7504 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 23:57:01 +00:00
Toshi MARUYAMA ff90cae5d3 Rails3: replace "all" fixtures at test/integration/api_test/time_entries_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7503 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 23:56:16 +00:00
Toshi MARUYAMA 7199985f5b Rails3: replace "all" fixtures at test/integration/layout_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7496 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 11:09:34 +00:00
Toshi MARUYAMA a16d2c2b2d code layout clean up of "Add a user as an anonymous user should fail" at test/integration/admin_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7495 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 10:11:52 +00:00
Toshi MARUYAMA dd431af597 code layout clean up of test_add_user at test/integration/admin_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7494 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 10:11:26 +00:00
Toshi MARUYAMA bed3e724da Rails3: replace "all" fixtures at test/integration/admin_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 10:10:59 +00:00
Toshi MARUYAMA dad3ede1f2 Rails3: replace "all" fixtures at test/integration/application_test.rb
Following error raises.
Fixture::FormatError: Bad data for Configuration::Empty fixture named default (nil)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7491 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-24 10:10:11 +00:00
Toshi MARUYAMA d51cc908fe remove trailing white-spaces from test/integration/api_test/issues_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6945 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 00:49:30 +00:00
Toshi MARUYAMA 51e2d89608 remove trailing white-spaces from test/integration/api_test/queries_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6935 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:16:38 +00:00
Toshi MARUYAMA ca7804bcb4 remove trailing white-spaces from test/integration/api_test/time_entries_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6934 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:16:04 +00:00
Toshi MARUYAMA 9e69cab15d remove trailing white-spaces from test/integration/api_test/users_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6933 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:15:39 +00:00
Toshi MARUYAMA e103d11178 remove trailing white-spaces from test/integration/api_test/issue_relations_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6931 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-31 23:01:28 +00:00
Toshi MARUYAMA 4c7ae6da39 remove trailing white-spaces from test/integration/api_test/versions_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6690 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-28 06:48:10 +00:00
Toshi MARUYAMA bc15b437de remove trailing white-spaces from test/integration/api_test/http_basic_login_with_api_token_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6674 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 10:03:58 +00:00
Toshi MARUYAMA 50f7af6b93 remove trailing white-spaces from test/integration/api_test/news_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6673 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 10:03:37 +00:00
Toshi MARUYAMA 1762486c23 remove trailing white-spaces from test/integration/api_test/projects_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6672 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 10:03:14 +00:00
Toshi MARUYAMA a53f979bc6 remove trailing white-spaces from test/integration/api_test/token_authentication_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6671 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 10:02:53 +00:00
Toshi MARUYAMA e2b4742ceb remove trailing white-spaces from test/integration/api_test/http_basic_login_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6670 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 08:47:04 +00:00
Toshi MARUYAMA 0cbd686a85 remove trailing white-spaces from test/integration/api_test/disabled_rest_api_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6669 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 08:46:29 +00:00
Toshi MARUYAMA 2a2cc6baf0 remove trailing white-spaces from test/integration/lib/redmine/menu_manager_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 08:45:56 +00:00
Toshi MARUYAMA a7a4da4d69 remove trailing white-spaces from test/integration/lib/redmine/themes_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6667 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 08:45:13 +00:00
Toshi MARUYAMA 28a8048749 remove trailing white-spaces from test/integration/api_test/attachments_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6666 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 08:44:31 +00:00
Toshi MARUYAMA 15bd634933 fix copyright format at test/integration/admin_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6664 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 05:48:59 +00:00
Toshi MARUYAMA f908dc5210 remove trailing white-spaces from test/integration/application_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6663 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 04:53:24 +00:00
Toshi MARUYAMA 201ad03ce1 remove trailing white-spaces from test/integration/admin_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6662 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 04:52:39 +00:00
Toshi MARUYAMA 3791487569 remove trailing white-spaces from test/integration/account_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6655 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 02:11:34 +00:00
Toshi MARUYAMA 4b60e577ca remove trailing white-spaces from test/integration/issues_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6654 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 02:10:59 +00:00
Toshi MARUYAMA db8beabfa3 remove trailing white-spaces from test/integration/routing_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6653 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 02:10:26 +00:00
Toshi MARUYAMA 17c87c1432 remove trailing white-spaces from test/integration/projects_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6652 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 02:09:56 +00:00
Toshi MARUYAMA 29c5714297 remove trailing white-spaces from test/integration/layout_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6651 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-27 02:09:21 +00:00
Jean-Philippe Lang 521eaa79cb Ability to load relations on /issues API (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6313 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-24 15:34:41 +00:00
Jean-Philippe Lang fdd5367eba Respond with errors and appropriate content type on /issues API calls with invalid query params (#8883).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6309 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-23 19:45:23 +00:00
Jean-Philippe Lang 8769eb53bc Removed a few assertions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6296 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-18 21:21:29 +00:00
Jean-Philippe Lang f89483a206 REST API for reading attachments (#7671).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6295 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-18 20:53:10 +00:00
Jean-Philippe Lang d48ea90876 Makes custom queries available through the REST API (#5737).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6186 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-06 16:57:04 +00:00
Jean-Philippe Lang 42f9dc7d2c Makes relations resource shallow (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6184 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-05 16:47:34 +00:00
Jean-Philippe Lang 852cb183b1 Makes versions resource shallow (#7403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6183 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-05 16:29:06 +00:00
Jean-Philippe Lang b86a748b1d Adds REST API for versions (#7403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6180 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 19:34:58 +00:00
Jean-Philippe Lang daa426167f Adds support for GET on /issues/:issue_id/relations (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6179 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 17:44:41 +00:00
Jean-Philippe Lang 21b3718744 Adds REST API for issue relations (#7366).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6176 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-04 17:03:04 +00:00
Jean-Philippe Lang 12801ca031 Fixed: GET /time_entries.xml ignores limit/offset parameters (#8356).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5881 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-22 10:48:59 +00:00
Toshi MARUYAMA bc5be82683 Fix typo "attachements" in test/integration/issues_test.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5289 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-02 08:01:06 +00:00
Jean-Philippe Lang 063ae06b09 Gantt routes with format.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5280 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-01 15:30:32 +00:00
Jean-Philippe Lang a80b909cc8 Converted issue filters to non-AJAX GET requests (#1965).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5276 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-01 14:34:44 +00:00
Jean-Philippe Lang 1cd6a2aa84 Adds User and Version custom field format that can be used to reference a project member or version in custom fields (#2096).
These new field formats are available for project, issue, version and time entry custom fields.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5272 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-01 13:44:58 +00:00
Toshi MARUYAMA 122ba564b9 Fix test/integration/api_test/users_test.rb fails due to changing en.yml (#8035, #7855).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5270 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-01 00:46:29 +00:00
Jean-Philippe Lang 70d765e906 Moves jstoolbar script include tags to head.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5238 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-28 19:56:22 +00:00
Jean-Philippe Lang e41b76b459 Fixed: Login page should not show projects link and search box if authentication is required (#3715).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5007 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-04 15:14:24 +00:00
Jean-Philippe Lang e9f62d1209 Enable ability for administrators to delete users (#7296).
User's personal data (eg. preferences, tokens, private queries...) are deleted, public data (eg. issues, wiki edits, attachments...) are reassigned to the anonymous user.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4729 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-16 15:23:11 +00:00
Jean-Philippe Lang 9fb770ba50 Moves enabled_module_names param to project attribute so that it can be set through the Project API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4645 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-06 20:36:31 +00:00
Jean-Philippe Lang 3b53ec20e6 Adds themes test for when Redmine is in a sub-uri.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4560 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-23 09:42:33 +00:00
Jean-Philippe Lang 523febf9c1 Support for Javascript in Themes (#2803).
If javascripts/theme.js is found in the theme directory, it will be automatically loaded on each page.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4558 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-22 21:37:07 +00:00
Jean-Philippe Lang 6d4126f17e Adds routing tests for users and xml format.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4545 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-20 18:06:14 +00:00
Jean-Philippe Lang 599bc45073 Adds support for requesting information about current user using /users/current (#7141).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4544 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-20 17:45:09 +00:00
Jean-Baptiste Barth 17f86d964f Use absolute paths in test/**/* requires for Ruby 1.9.2 compatibility. #4050
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4509 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 23:24:34 +00:00
Jean-Philippe Lang ac60fc9c1c Refactor and add tests for News #index API (#7072).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4505 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 17:00:52 +00:00
Jean-Philippe Lang 87ae744dce Fixes test according to r4493.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4498 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 14:43:55 +00:00
Jean-Philippe Lang 9e2d401f43 Moves mail_notification param to user hash param so that it can be set using the User API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4496 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 14:19:24 +00:00
Jean-Philippe Lang cde02954c8 Moves password param to user hash param so that it can be set using the User API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-12 13:39:55 +00:00
Jean-Philippe Lang 00d50157d3 Restores object count and adds offset/limit attributes to API responses for paginated collections (#6140).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4489 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-11 13:13:49 +00:00
Jean-Philippe Lang 5f57bceabb Makes some attributes optional in API response to get faster/lightweight responses.
These attributes are not required for common uses case (eg. updating an object). They can be requested in the reponse using the 'include' parameter. Example GET /issues/1.xml?include=journals. The list of attributes that can be included in responses will be documented in the wiki.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4486 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-11 10:19:11 +00:00
Jean-Philippe Lang ab6a93b029 Changes the representation of journal details in issue API.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4483 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-10 12:22:37 +00:00
Jean-Philippe Lang 3e3315c103 Support for updating custom fields using the received custom_fields array (#6345, #6403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4481 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-10 10:48:16 +00:00
Jean-Philippe Lang 0e19aa4362 Fixed: error when serializing back objects with custom fields using ActiveResource (#6403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4480 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-10 10:12:19 +00:00
Jean-Philippe Lang 9157482049 Adds subtasks to GET /issues/:id API (#5338).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4465 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-04 13:02:14 +00:00
Jean-Philippe Lang f7cf8aa878 Adds REST API for TimeEntries (#6823).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4461 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-04 10:13:15 +00:00
Jean-Philippe Lang 9284a32c9a Moves project attributes default assignments from ProjectsController#new to the model (#6064).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4460 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-03 16:15:16 +00:00
Jean-Philippe Lang 735a83c596 Converts IssuesController to use the new API template system and makes xml/json responses consistent (#6136).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4458 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-03 13:52:07 +00:00
Jean-Philippe Lang eaf6bb1e9b Projects API tests rewriting.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4457 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-03 12:49:07 +00:00
Jean-Philippe Lang e9775097ec Adds xml/json REST API for Users (#6260).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4453 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-12-03 11:28:44 +00:00
Jean-Philippe Lang ae3fd4cb59 Accept key auth for ProjectsController#show (#6841).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4444 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-27 16:41:52 +00:00
Jean-Philippe Lang 3d6cb1435c Accept key auth for ProjectsController#destroy (#6841).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4443 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-27 16:37:15 +00:00
Jean-Philippe Lang 054b7d28f1 Accept key auth for ProjectsController#update (#6841).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4442 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-27 16:32:48 +00:00
Jean-Philippe Lang 8458faed11 Accept key auth for ProjectsController#create (#6841).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4441 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-27 16:26:13 +00:00
Jean-Philippe Lang 2fab7bd9b1 Adds leading slash to all assert_redirected_to arguments (#6887).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4407 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-14 16:45:32 +00:00
Jean-Philippe Lang eaab2ede76 Makes projects API return XML description when creating a project (#6874).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4397 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-13 10:05:43 +00:00
Jean-Philippe Lang 475530e59f Adds a "visible" option on User and Project custom fields (#1738).
If set to false, the custom field won't be display on user profile/project overview.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4382 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-07 14:15:01 +00:00
Jean-Philippe Lang 6f841b7f43 Fixed: 'View difference' broken on wiki page history (#6747).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4372 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-06 13:22:23 +00:00
Eric Davis c55e060bab Allow key authentication when deleting issues (with tests) #6447
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4367 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-05 17:49:25 +00:00
Eric Davis 7d934c984a Allow key authentication when updating issues (with tests) #6447
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4366 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-05 17:49:20 +00:00
Eric Davis 4b1dd334a5 Allow key authentication when creating issues (with tests) #6447
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4365 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-05 16:29:56 +00:00
Eric Davis c967899b14 Refactor: Convert the tests for Issues#index and #show APIs to shoulda. #6447
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4364 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-04 16:22:47 +00:00
Eric Davis 30dc4fec99 Refactor: convert API key tests using HTTP Basic to a shoulda macro
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4363 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-03 16:48:23 +00:00
Eric Davis a04d64881c Refactor: convert username/password http basic auth api tests to shoulda macros #6447
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-02 15:52:06 +00:00
Eric Davis bed79f523b Refactor: convert api key tests to shoulda macros for reuse. #6447
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4358 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-01 15:45:03 +00:00
Eric Davis d5fde17bf5 Move all API tests into the ApiTest module to make management easier
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4357 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-11-01 15:26:05 +00:00
Eric Davis c514dd6885 Refactor: convert WikiController to a REST resource
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4303 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-28 21:25:38 +00:00
Eric Davis e9efa5b981 Refactor: use :id instead of :page when linking to Wiki Pages
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4296 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-27 16:27:06 +00:00
Eric Davis 70bf0706b2 Refactor: convert WikiController#destroy to use HTTP DELETE
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4295 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-26 15:59:20 +00:00
Eric Davis 4b045badcf Refactor: Rename WikiController#page_index to #index
index is the action that should list a collection of records, which is
what #page_index does.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4290 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-25 16:16:46 +00:00
Jean-Philippe Lang d9652183f6 Fixed: file upload on wiki page broken by recent refactoring (#6724).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4274 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-22 17:38:05 +00:00
Eric Davis cac3b1e538 Refactor: split WikiController#edit into #update
update will handle the saving and should be accessed via POST only.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4272 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-22 16:20:20 +00:00
Eric Davis c259ada6e1 Refactor: rename WikiController#index to #show, it's a single resource action
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4266 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-21 16:07:28 +00:00
Eric Davis d3381fb518 Refactor: change :id on WikiController to use :project_id
Using :id to track projects on non-project controllers is confusing and
makes routing with resources difficult.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4265 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-20 21:26:30 +00:00
Eric Davis c06c22cf2e Refactor: extract method from WikiController#special
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4261 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-18 15:27:49 +00:00
Eric Davis 0271105794 Refactor: extract #page_index from WikiController#special
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4253 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-15 15:36:10 +00:00
Eric Davis e8468b51cc Refactor: extract method in WikiController#special to create a new #export method
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4251 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-13 17:13:50 +00:00
Eric Davis 718816c5d4 Refactor: convert timelogs to a REST resource (:time_entries)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4250 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-12 15:55:21 +00:00
Eric Davis 435c90eb47 Refactor: extract TimelogController#edit to #update
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4248 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-11 15:31:42 +00:00
Eric Davis 4acd990ee2 Refactor: extract TimelogController#create from TimelogController#edit
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4244 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-08 15:39:39 +00:00
Eric Davis 068771ea07 Refactor: extract TimelogController#new from #edit
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4239 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-07 15:51:09 +00:00