Piotr Sarnacki
c15bb4901b
Fixed routes to use new API in a few more actionpack tests
2010-09-05 13:44:37 +02:00
Łukasz Strzałkowski
442e54967c
Removed rest of errors and failures in routing_test.rb. Almost all squashed, only few left
2010-09-05 13:44:37 +02:00
Piotr Sarnacki
3088b4f84f
raise error on invalid HTTP methods or :head passed with :via in routes
2010-09-05 13:44:37 +02:00
Piotr Sarnacki
8958f332bb
Implemented resources :foos, :except => :all option
2010-09-05 13:44:37 +02:00
Łukasz Strzałkowski
7c50454529
Test for recognizing routes with http method set
2010-09-05 13:44:37 +02:00
Łukasz Strzałkowski
8412886bdb
Fixed about half of broken tests in routing_test
2010-09-05 13:44:37 +02:00
Piotr Sarnacki
415bacd7bf
Fixed almost all resources tests
2010-09-05 13:44:36 +02:00
Łukasz Strzałkowski
8659c5e657
Fixed url_for test
...
Added route which matches all: controller, action, id and format
2010-09-05 13:44:36 +02:00
Piotr Sarnacki
b3eb26a161
Removed deprecated RouteSet API, still many tests fail
2010-09-05 13:44:36 +02:00
José Valim
599e46bf24
Revert "Setup explicit requires for files with exceptions. Removed them from autoloading."
...
Booting a new Rails application does not work after this commit [#5359 state:open]
This reverts commit 38a421b34d .
2010-09-02 21:11:03 +02:00
Łukasz Strzałkowski
38a421b34d
Setup explicit requires for files with exceptions. Removed them from autoloading.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-09-02 11:54:04 +02:00
José Valim
ba52748d05
Remove deprecated support to <% form_for %> and several ActionController::Base methods.
2010-08-29 21:08:14 -03:00
Jesse Storimer
730af48963
Ensure that inherited helper_methods are available after calling clear_helpers [ #5348 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-28 18:07:01 -03:00
José Valim
625f7b5a5b
Be sure to call helper :all just on direct children. (Tests by Jesse Storimer)
2010-08-26 18:20:22 -03:00
Andrew White
11f6179f55
Reset symbolized path parameters when a test request is recycled [ #5437 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-24 11:24:32 -03:00
Santiago Pastorino
bb75c33754
Config is deprecated on 1.8.8 and 1.9.3 use RbConfig
2010-08-23 23:10:36 -03:00
Andrew White
7c9bf45b0d
Support routing constraints in functional tests
...
Extend assert_recognizes and assert_generates to support passing
full urls as the path argument. This allows testing of routing
constraints such as subdomain and host within functional tests.
[#5005 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-08-20 14:51:25 -03:00
Xavier Noria
fb6b805620
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
2010-08-17 03:32:11 +02:00
Santiago Pastorino
ad4272922d
object/try should be required after abstract_unit to have AS in the load path
2010-08-14 18:33:38 -03:00
Santiago Pastorino
b451de0d6d
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:12:33 -03:00
Xavier Noria
4f7565c4de
adds missing requires for Object#try
2010-08-09 15:25:21 +02:00
Santiago Pastorino
111234e7c1
Use AS::OrderedHash when trusting in the order of the hash
2010-08-01 21:56:06 -03:00
Brian Rose
622092d33e
Fixed a globbed route issue where slashes were being escaped, causing assert_routing to fail. [ #5135 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-21 22:07:40 +02:00
Piotr Sarnacki
6807b08099
Moved a few methods from RecordIdentifier to ActiveModel::Naming
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-21 11:29:58 +02:00
José Valim
c3c349ec3e
Remove assert_valid. It was already deprecated on Rails 2.3.
2010-07-19 22:35:17 +02:00
Neeraj Singh
33c5689e2d
Exceptions from views should be rescued based on the original exception. If a handler for original exception is missing then apply ActiveView::TemplateError
...
[#2034 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-19 14:50:38 +02:00
Jeremy Kemper
81f398b804
Fix setting helpers_path to a string or pathname
2010-07-07 12:03:08 -07:00
Patrik Stenmark
7f7480f6fc
Adds tests for content negotiation change introduced in dc5300adb6
...
Signed-off-by: wycats <wycats@gmail.com >
2010-07-04 11:17:16 -07:00
Piotr Sarnacki
f7ba614c2d
Unify routes naming by renaming router to routes
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-07-02 01:51:03 +02:00
Santiago Pastorino
824da60ae8
Move Rails module to abstract_unit to make test in isolation work
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-28 01:26:07 +02:00
Andrew White
bba19603c2
URL fragments should not have safe characters escaped. Ref: Appendix A, http://tools.ietf.org/rfc/rfc3986.txt
...
[#4762 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-06-25 18:05:40 -07:00
José Valim
a12b76b09e
Just reading flash messages should not create a session if one does not exist yet.
2010-06-25 09:36:26 +02:00
José Valim
6788db824a
Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [ #4816 state:resolved]
2010-06-24 13:23:43 +02:00
knapo
995b1a243c
Fix controller_name for non default controller paths [ #4901 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-23 01:37:52 +02:00
Jan De Poorter
96f5e59a26
Make sure a namespaced <%= render form %> still renders the _form partial [ #4784 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:58:10 +02:00
Andrew White
ed3f042e99
Make polymorphic_url and scaffolding work with uncountable resources [ #3930 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-20 00:15:41 +02:00
Xavier Noria
f17159b029
edit pass: the names of Rails components have a space, ie, "Active Record", not "ActiveRecord"
2010-06-14 23:22:04 +02:00
Jeremy Kemper
acad3ba848
Ruby 1.9.1 compat: constant lookup
2010-06-11 11:00:56 -07:00
Rizwan Reza
132730d5db
Moved test/controller/cookie_test.rb to test/dispatch/cookies_test.rb
2010-06-11 16:34:53 +02:00
Alan Harper
566967eaf3
Missing method error doesn't specify which controller it is missing from [ #4436 state:resolved]
...
The error page shown when the method you are requesting on a controller
doesn't specify which controller the method is missing from
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-10 20:04:37 +02:00
Neeraj Singh
f48aa14bf4
Better test for ticket [ #3914 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-09 09:51:05 +02:00
Neeraj Singh
db23a95a61
cache_sweeper yields blank output
...
[#3914 state:open]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-08 23:20:04 +02:00
David Heinemeier Hansson
585f8f27b1
Fixed double output from cache in no caching mode
2010-06-08 14:47:02 -04:00
José Valim
981f81275b
Fix case when rendering a partial inside RJS with inherited layout [ #4786 state:resolved]
2010-06-07 22:22:54 +02:00
José Valim
9a93844aba
Add :only and :except to controllers MiddlewareStack. This allows
...
you to do the following:
class PostsController < ApplicationController
use AutheMiddleware, :except => [:index, :show]
end
2010-05-30 15:53:14 +02:00
José Valim
59d1c418be
Fix a bug where responders were not working properly on method override.
2010-05-24 13:12:40 +02:00
Neeraj Singh
b462952886
Use better assertion methods for testing
...
[#4645 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-19 10:18:36 +02:00
Neeraj Singh
73f0e1a842
Use assert_respond_to because it has better error messaging
...
[#4628 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-18 02:12:06 +02:00
José Valim
25f7c030e4
Simplify cookie_store by simply relying on cookies.signed.
2010-05-18 02:05:20 +02:00
wycats
80b60671f7
Revert "Moved encoding work in progress to a feature branch."
...
This reverts commit ade756fe42 .
2010-05-17 19:41:54 +04:00