rails--rails/actionpack/test/controller
snusnu f81c6bc040 AMo #key is now #to_key and CI is probably happy
Obviously #key is a too common name to be included
in the AMo interface, #to_key fits better and also
relates nicely to #to_param. Thx wycats, koz and
josevalim for the suggestion.

AR's #to_key implementation now takes customized
primary keys into account and there's a testcase
for that too.

The #to_param AMo lint makes no assumptions on how
the method behaves in the presence of composite
primary keys. It leaves the decision wether to
provide a default, or to raise and thus signal to
the user that implementing this method will need
his special attention, up to the implementers. All
AMo cares about is that #to_param is implemented
and returns nil in case of a new_record?.

The default CompliantObject used in lint_test
provides a naive default implementation that just
joins all key attributes with '-'.

The #to_key default implementation in lint_test's
CompliantObject now returns [id] instead of [1].
This was previously causing the (wrong) tests I
added for AR's #to_key implementation to pass. The
#to_key tests added with this patch should be
better.

The CI failure was caused by my lack of knowledge
about the test:isolated task. The tests for the
record_identifier code in action_controller are
using fake non AR models and I forgot to stub the
#to_key method over there. This issue didn't come
up when running the test task, only test:isolated
revealed it. This patch fixes that.

All tests pass isolated or not, well, apart from
one previously unpended test in action_controller
that is unrelated to my patch.
2010-02-20 20:17:29 -08:00
..
controller_fixtures
deprecation
new_base Add support for compile-time <%= raw %> 2010-01-31 23:42:35 -08:00
request
action_pack_assertions_test.rb Use new routing dsl in tests 2009-12-08 16:52:26 -06:00
addresses_render_test.rb
assert_select_test.rb Get rid of AM warnings in AP test suite. 2010-01-29 17:51:05 +01:00
base_test.rb Make filter parameters based on request, so they can be modified for anything in the middleware stack. 2010-01-21 16:52:49 +01:00
caching_test.rb For performance reasons, you can no longer call html_safe! on Strings. Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). 2010-01-31 19:39:13 -08:00
capture_test.rb
content_type_test.rb
cookie_test.rb Accessing nonexistant cookies through the signed jar should not raise an 2010-01-17 21:31:06 -06:00
dispatcher_test.rb Move Dispatcher setup to Railties and add instrumentation hook. 2010-01-15 12:24:30 +01:00
filters_test.rb deOMGifying Railties, Active Support, and Action Pack 2010-01-31 09:46:30 -08:00
flash_test.rb Module lookup issue on flash_test using ruby 1.9 solved [#3716 status:resolved] 2010-01-17 16:57:14 +01:00
helper_test.rb Bring helpers_dir deprecation back. 2010-01-30 16:49:58 +01:00
http_basic_authentication_test.rb
http_digest_authentication_test.rb
integration_test.rb Make HEAD method masquerade as GET so requests are routed correctly 2010-01-15 12:38:50 -06:00
layout_test.rb Reorganize autoloads: 2009-12-02 20:01:08 -08:00
log_subscriber_test.rb Merge master. 2010-02-17 00:48:04 +01:00
mime_responds_test.rb Improve missing template error messages a little bit. 2010-01-31 10:24:38 +01:00
output_escaping_test.rb For performance reasons, you can no longer call html_safe! on Strings. Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). 2010-01-31 19:39:13 -08:00
record_identifier_test.rb AMo #key is now #to_key and CI is probably happy 2010-02-20 20:17:29 -08:00
redirect_test.rb Use new routing dsl in tests 2009-12-08 16:52:26 -06:00
render_js_test.rb Namespace TestControllers inside their test case class 2009-09-19 13:04:12 -05:00
render_json_test.rb Namespace TestControllers inside their test case class 2009-09-19 13:04:12 -05:00
render_other_test.rb Simpler RenderOption API -- removes the need for registering the types and extending a module 2009-12-09 13:40:49 -08:00
render_test.rb Make Railties tests green again. 2010-02-17 00:14:49 +01:00
render_xml_test.rb Use new routing dsl in tests 2009-12-08 16:52:26 -06:00
request_forgery_protection_test.rb Test that csrf meta content is html-escaped, too 2010-02-04 18:03:06 -08:00
rescue_test.rb Ruby 1.9: resolve constant lookup issues 2009-11-04 15:41:50 -08:00
resources_test.rb Respect resources_path_names and :path_names options in new dsl 2010-01-13 20:26:01 -06:00
routing_test.rb optimise_named_routes is unnecessary 2010-01-13 20:22:53 -06:00
selector_test.rb
send_file_test.rb Fix a bunch of pending tests by providing an introspection mode for the Response object that does up-front parsing of the headers to populate things like @etag 2010-02-19 19:19:20 -08:00
test_test.rb TestProcess belongs in AD 2009-12-12 18:09:44 -06:00
url_for_test.rb ActionMailer should depend just on AbstractController. 2010-01-29 17:51:05 +01:00
url_rewriter_test.rb Remove duplicated url_for code and move methods shared between ActionMailer and ActionController up to AbstractController. 2010-01-07 15:31:50 +01:00
verification_test.rb Ruby 1.9: resolve constant lookup issues 2009-11-04 15:41:50 -08:00
view_paths_test.rb Convert to class_attribute 2010-02-01 02:02:42 -08:00
webservice_test.rb Use new routing dsl in tests 2009-12-08 16:52:26 -06:00