Joshua Peek
7fe19d415a
Make recognize try to constantize controller to see if it exists
2009-12-01 22:22:48 -06:00
Joshua Peek
3895e2ccb3
Donate tests I wrote for rackmount rails integration
2009-10-20 09:52:59 -05:00
Joshua Peek
673f73b538
Add define another "stuff" controller to support routing tests
2009-10-10 21:30:50 -05:00
Joshua Peek
7bc5e3bd02
Add define a "stuff" controller in fixtures to support routing tests
2009-10-10 21:30:50 -05:00
Joshua Peek
61411f2aeb
Redraw default routes on all internal integration tests. We don't need SimpleRouteCase anymore
2009-10-03 23:18:32 -05:00
Joshua Peek
8287a112c9
Avoid creating new controller constants during test runtime. All routable controllers should be defined beforehand.
2009-10-03 23:03:08 -05:00
Joshua Peek
f5cba5e6b1
Moved shared form helper models into fake_models
2009-10-03 22:14:50 -05:00
Joshua Peek
84e94551f6
Add custom "with_routing" to internal tests to fix reseting session after using
...
with_routing. This only affects our internal AP tests.
2009-10-03 20:45:49 -05:00
Joshua Peek
213c920e4f
Define weblog controller for url helper test
2009-09-13 17:28:44 -05:00
Joshua Peek
6d214c953b
Merge abstract_controller/test_helper and new_base/test_helper since they are expected to run in the same testing sandbox
2009-09-13 16:30:27 -05:00
Joshua Peek
2ae84e04aa
Add fake controllers for url rewriter tests
2009-09-06 23:02:55 -05:00
Joshua Peek
c531bd6665
Cleanup hacky routing with controller_path in url helper tests. This doesn't work in real life anyway.
2009-09-06 22:29:29 -05:00
Joshua Peek
9f47f8d892
Fix isolated running of AddressesTest
2009-09-06 21:42:05 -05:00
Joshua Peek
1c02fc295d
Fix isolated running of ActionPackAssertionTest
2009-09-06 21:19:29 -05:00
Yehuda Katz + Carl Lerche
f61dc0ef65
Remove a useless method in the fixture template class
2009-09-03 11:40:03 -07:00
Yehuda Katz + Carl Lerche
f3fc5c4b5f
Refactor ActionView::Resolver
2009-09-03 11:18:57 -07:00
Yehuda Katz + Carl Lerche
66a4585f88
Fix the */* with Net::HTTP bug [ #3100 state:resolved]
2009-09-01 15:54:29 -07:00
Joshua Peek
78129b1731
Track all AC base subclasses as possible controllers for internal testing
2009-08-25 23:34:48 -05:00
Yehuda Katz
1310231c15
Got tests to pass with some more changes.
...
* request.formats is much simpler now
* For XHRs or Accept headers with a single item, we use the Accept header
* For other requests, we use params[:format] or fallback to HTML
* This is primarily to work around the fact that browsers provide completely
broken Accept headers, so we have to whitelist the few cases we can
specifically isolate and treat other requests as coming from the browser
* For APIs, we can support single-item Accept headers, which disambiguates
from the browsers
* Requests to an action that only has an XML template from the browser will
no longer find the template. This worked previously because most browsers
provide a catch-all */*, but this was mostly accidental behavior. If you
want to serve XML, either use the :xml format in links, or explicitly
specify the XML template: render "template.xml".
2009-08-15 12:32:02 -07:00
José Valim
4f9047ecc8
Ensure collections are not treated as nested resources.
2009-08-13 10:27:41 +02:00
José Valim
7034272354
Add destroyed? to ActiveRecord, include tests for polymorphic urls for destroyed objects and refactor mime responds tests and documentation.
2009-08-07 17:16:16 +02:00
Joshua Peek
92c00d7586
AMo conversion helper
2009-07-21 00:51:57 -05:00
Yehuda Katz
5ffaaa71d1
Define ActiveModel API Compliance
...
- Define to_model on AR
- Define to_model on ActiveModel::APICompliant
- Update test fixtures to be API Compliant
- Start using to_model in AP
2009-07-20 00:27:04 +09:00
Yehuda Katz + Carl Lerche
1b844e4bf4
Passes in 1.9
2009-06-23 14:45:27 -07:00
Yehuda Katz + Carl Lerche
8fdf3d7890
Remove some defined?(Http) checks
2009-06-17 16:14:05 -07:00
Yehuda Katz + Carl Lerche
d8f352e970
Rename ActionView::Template::Path ActionView::Resolver
2009-06-17 15:32:55 -07:00
Yehuda Katz + Carl Lerche
4fad953f90
Fixing pending tests and fixed some formats / partial rendering semantics
2009-06-17 12:54:19 -07:00
Joshua Peek
1c4d28ba31
Move model naming into ActiveModel
2009-06-17 10:37:39 -05:00
Jeremy Kemper
da9e53ec3b
Move testing_sandbox to test/lib
2009-05-22 17:17:14 -07:00
Jeremy Kemper
b7c031f52e
Move active_record_unit to shared load path
2009-05-22 16:21:21 -07:00
Jeremy Kemper
ca72078388
Move fake controllers and models to a common load path
2009-05-22 16:11:54 -07:00
Yehuda Katz + Carl Lerche
c8eda9ade4
Fixed new_base tests on ruby 1.9
2009-05-20 17:22:29 -07:00
Yehuda Katz + Carl Lerche
8a4e77b420
OMG, a lot of work
2009-05-01 17:31:01 -07:00
Yehuda Katz and Carl Lerche
a501638e9d
Checkpoint
2009-03-23 15:45:01 -07:00