Brian Lopez
b0de061e7b
Allow ParamsParser to parse YAML from the request body IO directly
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-17 16:09:28 -05:00
Joshua Peek
092089015b
Extract generic callbacks middleware from dispatcher
2009-05-17 13:39:55 -05:00
Joshua Peek
8118fca9be
Merge Failsafe middleware into ShowExceptions
2009-05-17 12:24:59 -05:00
Brian Lopez
53dda29f8b
Add support for parsing XML and JSON from an IO as well as a string [ #2659 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-05-17 10:37:52 -05:00
Bryan Helmkamp
7f318c3ec5
Instead of checking Rails.env.test? in Failsafe middleware, check env["rails.raise_exceptions"]
2009-05-16 14:15:26 -04:00
Jeremy Kemper
5dd29c466c
Cherry-picking Active Support extensions
2009-05-14 02:01:08 -07:00
Jeremy Kemper
e8550ee032
Cherry-pick core extensions
2009-05-13 12:00:15 -07:00
Yehuda Katz + Carl Lerche
216309c165
Implemented redirects and partial rendering in new base.
2009-05-12 16:21:34 -07:00
Yehuda Katz + Carl Lerche
00a9d4b91c
Merge branch 'master' into wip_abstract_controller
...
Conflicts:
actionpack/lib/action_controller/abstract/callbacks.rb
actionpack/lib/action_controller/abstract/renderer.rb
actionpack/lib/action_controller/base/base.rb
actionpack/lib/action_controller/dispatch/dispatcher.rb
actionpack/lib/action_controller/routing/route_set.rb
actionpack/lib/action_controller/testing/process.rb
actionpack/test/abstract_controller/layouts_test.rb
actionpack/test/controller/filters_test.rb
actionpack/test/controller/helper_test.rb
actionpack/test/controller/render_test.rb
actionpack/test/new_base/test_helper.rb
2009-05-11 17:07:05 -07:00
Joshua Peek
bcc4537f2a
Wrap dispatcher callbacks around the whole middleware chain. Kill unnecessary Reloader middleware.
2009-05-03 09:41:40 -05:00
Joshua Peek
e066019280
Show lazy middleware args in pretty print
2009-05-03 09:24:32 -05:00
Joshua Peek
11af089cee
Extract ActionController rescue templates into Rescue and ShowExceptions middleware.
...
This commit breaks all exception catching plugins like ExceptionNotifier. These plugins should be rewritten as middleware instead overriding Controller#rescue_action_in_public.
2009-05-02 23:02:22 -05:00
Joshua Peek
f32cf44870
Switch functional tests to run through the rack interface instead of process
2009-05-02 15:29:18 -05:00
Joshua Peek
a8b75c480f
Functional test runner finalizes response just like the integration test runner. In both runners, the @response object will now behave the same.
...
Some functional tests will need to be updated if they are relying on preprocessed data on the response.
2009-05-02 14:57:40 -05:00
Joshua Peek
3900f4007e
Deprecate assert_redirect_to's partial hash matching
2009-05-02 14:23:44 -05:00
Yehuda Katz + Carl Lerche
e046f36824
Renamed Base2 to Base and don't require old action_controller for new Base
2009-05-01 17:31:03 -07:00
Pratik Naik
853c229bbd
Rename vendor/rack to vendor/rack-1.1.pre
2009-05-01 20:24:14 +01:00
Pratik Naik
432e631d5c
Vendor Rack edge ( commit : 815342a8e15db564b766f209ffb1e340233f064f )
2009-05-01 20:12:49 +01:00
Joshua Peek
1fcc7dbcc8
Move TestRequest#query_parameters into AD TestRequest
2009-04-30 23:46:34 -05:00
Joshua Peek
a6fff94baf
Move TestRequest cookies accessor into AD TestRequest
2009-04-30 19:23:50 -05:00
Joshua Peek
d54604c352
Depend on unreleased rack 1.1
2009-04-30 19:10:05 -05:00
Joshua Peek
00d1a57e9f
Start moving TestRequest and TestResponse into ActionDispatch
2009-04-30 17:26:03 -05:00
Joshua Peek
64e66cf161
Vendor new Rack::Mock changes
2009-04-30 14:40:46 -05:00
Joshua Peek
9bac470c7a
Group integration test helpers and delegate other helpers to request and response objects
2009-04-30 14:28:42 -05:00
Joshua Peek
ba9887c9c0
Switch to action_dispatch rack namespace
2009-04-30 13:45:12 -05:00
Joshua Peek
7b3b7cb2ab
Move generic assertions into ActionDispatch
2009-04-30 11:55:53 -05:00
Jeremy Kemper
7eef11eb65
Convert params keys to strings
2009-04-29 23:29:11 -07:00
Joshua Peek
c0a372ba87
Deprecate template, session, assigns, and layout accessors on response object. Instead access them through the controller instance. This mainly affects functional test assertions.
2009-04-28 23:29:46 -05:00
Joshua Peek
8925e89c63
Deprecate response.assigns
2009-04-28 23:29:46 -05:00
Joshua Peek
d63b42da36
Move header injection back into integration tests
2009-04-28 23:29:46 -05:00
Joshua Peek
21aa32692c
Delegate controller.session to request.session and deprecate response session
2009-04-27 13:11:17 -05:00
Jeremy Kemper
a88ddf8cc3
Don't return bare string as rack body
2009-04-27 00:00:03 -07:00
Jeremy Kemper
f5b4a9d02b
Array splitting strings on newlines is deprecated
2009-04-26 18:27:41 -07:00
Jeremy Kemper
1850aea7fc
Not sure why Request#session is missing
2009-04-26 18:26:06 -07:00
Jeremy Kemper
3f63202781
Don't assume :params is a Hash
2009-04-26 16:04:29 -07:00
Jeremy Kemper
c9d9bd7227
Check for to_str rather than String
2009-04-26 16:04:11 -07:00
Joshua Peek
0494909679
Inherit TestSession from Session::AbstractStore and add indifferent access to Session::AbstractStore.
2009-04-26 14:33:57 -05:00
Hongli Lai (Phusion)
3cb97aeea8
Fix environment variable testing code in failsafe.rb.
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-26 11:23:10 -05:00
Joshua Peek
82bc768dad
Fix typo in stale session check [ #2404 state:resolved]
2009-04-26 11:19:42 -05:00
Joshua Peek
5352a2417b
Move useful response test helpers into request
2009-04-26 11:12:33 -05:00
Joshua Peek
4f412a10b6
Remove RewindableInput middleware since all input MUST be rewindable according to a recent change in the Rack 1.0 SPEC
2009-04-25 14:04:03 -05:00
Joshua Peek
b69da86ea5
Remove vendored version of Rack
2009-04-25 13:56:37 -05:00
Joshua Peek
044794fc9e
Remove pending rack specifications until they are official
2009-04-25 13:41:30 -05:00
Joshua Peek
dd2ed32418
Start to integrate some of the features in Rack::Test.
...
Eventually commit ActionDispatch::Test::MockRequest and ActionDispatch::Test:: UploadedFile upstream.
2009-04-24 20:24:54 -05:00
Jeremy Kemper
6fee981fa4
Opt in to JSON
2009-04-22 16:48:58 -07:00
Mislav Marohnić
7ce0778a15
Always buffer rack.input if it is not rewindable
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-04-17 21:53:44 -05:00
Joshua Peek
d7396b5ca9
Move reloader middleware in ActionDispatch
2009-04-14 17:06:32 -05:00
Joshua Peek
97a88a91cb
Move middleware stack out of utils folder
2009-04-14 16:56:45 -05:00
Joshua Peek
ef08aa45b1
Use rack's status code list as a base
2009-04-14 16:47:03 -05:00
Joshua Peek
11d4bfb18c
We aren't using UploadedStringIO and UploadedTempfile anymore
2009-04-14 15:56:13 -05:00