Commit Graph

16129 Commits

Author SHA1 Message Date
David Chelimsky
176fbfd66f extract ActionController::TestCase::Behavior
- this makes it possible for other test frameworks
  to hook into testing facilities provided by Rails
  without having to subclass AC::TestCase.

[#4474 state:resolved]

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-26 09:52:38 +02:00
José Valim
9b5a1f7ac1 No need to require test and rdoc tasks. 2010-04-26 09:37:15 +02:00
José Valim
e461e1bc0e Ensure application rake tasks and generators are loaded after the ones specified in railties/engines/rails. [#4471 state:resolved] 2010-04-26 09:36:13 +02:00
José Valim
c9132c149c Refactor tests by moving all middleware tests to the same place. 2010-04-26 09:04:04 +02:00
Jeremy Kemper
2a6e0f34ad Revert "create option to include_root_in_json for ActiveResource [#2584 state:committed]"
This reverts commits 72f89b5d97, 137d8e0b2f.

Should reuse Active Model.

[#2584 state:incomplete]
2010-04-25 21:04:19 -07:00
Cezary Baginski
490a3335d5 Action Pack: fix tests with -K*, work around Ruby 1.9.1 constant lookup.
[#4473 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-25 17:00:20 -07:00
Andrew White
8ec085bf18 Support fixtures for namespaced models [#2965 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-25 16:04:38 +02:00
reu
77c099c231 Fix validates_numericaly_of only integer error message [#4406 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-25 10:14:15 +02:00
David Chelimsky
864bd9c21f allow unsubscribe by name or subscription [#4433 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-24 22:06:24 -07:00
Jeremy Kemper
df886c4c89 Missed commit: explicit source encoding 2010-04-24 18:52:51 -07:00
Jeremy Kemper
403752e289 Explicit source encoding 2010-04-24 18:35:12 -07:00
Jeremy Kemper
bd3cc6bfff Remove quoted_string_prefix entirely since PostgreSQL was the only database adapter relying on it. 2010-04-24 16:27:20 -07:00
Santiago Pastorino
ed0ca5db9e Add a test for assert_recognizes on ActionDispatch::IntegrationTest [#4390 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-24 15:43:12 -07:00
Matthew Rudy Jacobs
5c9d23f870 Make assert_recognizes work in IntegrationTest [#4390 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-24 15:42:55 -07:00
Jeremy Kemper
426f93b751 PostgreSQL: always rely on pg driver for escape/unescape and quoting duties 2010-04-24 15:38:36 -07:00
Jeremy Kemper
dac80f779d PostgreSQL: use standard-conforming strings if possible 2010-04-24 15:27:18 -07:00
Jeremy Kemper
72a3e4b77b Rename fieldWithErrors style to field_with_errors. Remove unused alert style. 2010-04-24 15:02:12 -07:00
Jeremy Kemper
2538ef0d09 Use Array.wrap to quiet 1.8.8 deprecation 2010-04-24 13:12:07 -07:00
Jeremy Kemper
70625badcf Drop support for postgres driver. Use pg >= 0.9.0. 2010-04-24 12:27:56 -07:00
Jeremy Kemper
577034decb Ensure require and load are private - h/t apeiros 2010-04-24 10:38:41 -07:00
José Valim
aaaa1782b4 Fix render :xml test (ht Simo Niemelä) 2010-04-24 11:48:47 +02:00
Santiago Pastorino
19cecc907f HWIA relies on Hash#symbolize_keys and #stringify_keys extensions.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-22 11:02:15 -07:00
Jeremy Kemper
c976784381 Change HWIA#stringify_keys to return a HWIA not a Hash 2010-04-22 10:07:33 -07:00
Jeremy Kemper
d692e6be30 Restore HWIA#stringify_keys! and update changelog 2010-04-22 10:00:23 -07:00
Santiago Pastorino
ebf9820f7e HWIA symbolize_keys now returns a hash so no need to do this anymore
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-22 09:07:53 -07:00
Santiago Pastorino
920df0a475 Make ActionDispatch url_for use HWIA symbolize_keys
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-22 09:06:55 -07:00
Santiago Pastorino
2472f1026a HWIA delegates to to_hash symbolize_keys and stringify_keys and bang methods are not in the api
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-22 09:06:44 -07:00
J Smith
275e839b8d Ensure that url_for uses symbolized keys in the controller. [#4391]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-04-22 16:47:36 +02:00
José Valim
9476daa829 Speed up xml serializer by computing values just once and remove unecessary code duplication. 2010-04-22 12:29:08 +02:00
José Valim
81fb742488 Always downstream given options in :json, :xml and :js renderers and add tests for it. 2010-04-22 12:12:38 +02:00
José Valim
4163ccec23 Clean up the config object in ActionPack. Create config_accessor which just delegates to the config object, reducing the number of deprecations and add specific tests. 2010-04-22 12:00:13 +02:00
Santiago Pastorino
a8330c2006 params already has a setted controller and action here
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-21 17:46:37 -07:00
Santiago Pastorino
5c9c30ac65 url_for now works with HashWithIndifferentAccess ht jay [#4391 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-21 17:09:14 -07:00
Daniel Neighman
726b5d7984 updates String#to_(date|date_time|time) to return nil for blank strings 2010-04-21 16:54:33 -07:00
Andre Arko
b73177a095 Squash backtraces from Bundler.setup 2010-04-21 14:45:13 -07:00
Santiago Pastorino
961aa70e4a Some require indifferent_access added
Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
2010-04-21 07:45:29 -07:00
Santiago Pastorino
5467728d83 require without .rb
Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
2010-04-21 07:41:45 -07:00
wycats
62916ecbbe It should be possible to render :json with options 2010-04-20 22:29:00 -07:00
Santiago Pastorino
d1911a0707 TimeZones lazy load
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-04-20 21:40:24 -07:00
Pratik Naik
2ff73039bd Build PredicateBuilder object only when needed 2010-04-21 02:43:52 +01:00
José Valim
da32661f10 Remove only formats in shortcuts and do it just once. 2010-04-20 21:19:48 +02:00
José Valim
2e3d903e1b Move observers initialization to after_config blocks, they are still being initialized to early (before load paths are being set). 2010-04-20 21:19:48 +02:00
Jeremy Kemper
9934738ed5 Switch to TimezoneProxy for later support of deferred TZ loading 2010-04-20 10:54:37 -07:00
Santiago Pastorino
a90a076613 Missing requires added
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-04-20 07:45:54 -07:00
Phil Smith
d03196c89e Regexp.escape(load_path) in add_routing_namespaces initializer [#4442 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com>
2010-04-20 08:53:46 +12:00
Santiago Pastorino
69bd542d61 test refactor 2010-04-19 11:44:11 -03:00
Santiago Pastorino
137d8e0b2f Make this test pass on > 1.9 2010-04-19 11:44:11 -03:00
Cheah Chu Yeow
ad4615e978 Rails on Rack Rails guide: indicate that Metal pieces now require an "X-Cascade" header with a value of "pass" to continue the Metal chain execution instead of a HTTP 404 response. Also removed reference to old code. 2010-04-19 05:09:40 -07:00
Rohit Arondekar
15efaa701a Fixes to the getting started guide 2010-04-19 05:09:29 -07:00
Xavier Noria
bb19f20876 much complete rdoc for String#ord 2010-04-19 05:04:18 -07:00