Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Moved encoding work in progress to a feature branch. | Jeremy Kemper | 2010-05-16 | 1 | -4/+0 | |
| | | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c. | |||||
* | Significantly improved internal encoding heuristics and support. | wycats | 2010-05-16 | 1 | -0/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | * Default Encoding.default_internal to UTF-8 * Eliminated the use of file-wide magic comments to coerce code evaluated inside the file * Read templates as BINARY, use default_external or template-wide magic comments inside the Template to set the initial encoding * This means that template handlers in Ruby 1.9 will receive Strings encoded in default_internal (UTF-8 by default) * Create a better Exception for encoding issues, and use it when the template source has bytes that are not compatible with the specified encoding * Allow template handlers to opt-into handling BINARY. If they do so, they need to do some of their own manual encoding work * Added a "Configuration Gotchas" section to the intro Rails Guide instructing users to use UTF-8 for everything * Use config.encoding= in Ruby 1.8, and raise if a value that is an invalid $KCODE value is used Also: * Fixed a few tests that were assert() rather than assert_equal() and were caught by Minitest requiring a String for the message * Fixed a test where an assert_select was misformed, also caught by Minitest being more restrictive * Fixed a test where a Rack response was returning a String rather than an Enumerable | |||||
* | move FixtureResolver to a file that is accessible outside Rails' own tests | David Chelimsky | 2010-05-02 | 1 | -1/+1 | |
| | | | | | | [#4522 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Add a test for assert_recognizes on ActionDispatch::IntegrationTest [#4390 ↵ | Santiago Pastorino | 2010-04-24 | 1 | -1/+7 | |
| | | | | | | state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Rename config.cookie_secret to config.secret_token and pass it as ↵ | José Valim | 2010-04-05 | 1 | -4/+0 | |
| | | | | configuration in request.env. This is another step forward removing global configuration. | |||||
* | Refactored url_for in AV to have its own instances of the helpers instead of ↵ | wycats | 2010-04-03 | 1 | -0/+20 | |
| | | | | proxying back to the controller. This potentially allows for more standalone usage of AV. It also kicked up a lot of dust in the tests, which were mocking out controllers to get this behavior. By moving it to the view, it made a lot of the tests more standalone (a win) | |||||
* | Consistent routing language | Joshua Peek | 2010-03-30 | 1 | -8/+7 | |
| | ||||||
* | Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack ↵ | wycats | 2010-03-19 | 1 | -0/+13 | |
| | | | | response was a String. | |||||
* | Modify assert_template to use instrumentation | Carlhuda | 2010-03-17 | 1 | -41/+0 | |
| | ||||||
* | Make many parts of Rails lazy. In order to facilitate this, | wycats | 2010-03-07 | 1 | -1/+0 | |
| | | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook | |||||
* | Deprecated ActionController::Base.session_options= and ↵ | Carlhuda | 2010-03-04 | 1 | -2/+1 | |
| | | | | ActionController::Base.session_store= in favor of a config.session_store method (which takes params) and a config.cookie_secret variable, which is used in various secret scenarios. The old AC::Base options will continue to work with deprecation warnings. | |||||
* | Move the original config method onto AbstractController | Carl Lerche | 2010-03-03 | 1 | -1/+1 | |
| | ||||||
* | Start refactoring the method of configuring ActionView | Carlhuda | 2010-03-03 | 1 | -0/+15 | |
| | ||||||
* | Fix failing Action Pack tests | Carlhuda | 2010-03-02 | 1 | -0/+10 | |
| | ||||||
* | add activesupport and activemodel load paths to actionpack tests | Joshua Peek | 2010-02-28 | 1 | -0/+6 | |
| | ||||||
* | Remove implicit controller namespacing from new dsl | Joshua Peek | 2010-02-28 | 1 | -3/+5 | |
| | ||||||
* | If IntegrationSession is initialized with an objects that responds to ↵ | Carlhuda | 2010-02-26 | 1 | -0/+1 | |
| | | | | #routes, automatically extend the URL helpers from the RouteSet onto it | |||||
* | Upon further reflection, we realized that SharedTestRoutes is not really a ↵ | Carlhuda | 2010-02-26 | 1 | -1/+0 | |
| | | | | | | | | hack, but is instead a standin (in the Rails tests) for Rails.application.routes. * In a real application, action_controller/railties.rb does AC::Base.include(app.routes.url_helpers) * ActionController itself does not know about Rails.application, but instead can have named routes for any router * SharedTestRoutes are created in abstract_unit to stand in for Rails.application.routes, and is used in internal functional tests | |||||
* | Relatively speaking, it's not actually that bad... | Carlhuda | 2010-02-26 | 1 | -2/+0 | |
| | ||||||
* | Remove traces of SharedTestRoutes from user code; leave it as a standin for ↵ | Carlhuda | 2010-02-26 | 1 | -1/+0 | |
| | | | | Rails.application.routes in Rails internal tests | |||||
* | Stop setting UrlFor using SharedTestHelpers | Carlhuda | 2010-02-26 | 1 | -3/+3 | |
| | ||||||
* | Rename named_url_helpers to url_helpers and url_helpers to url_for | Carlhuda | 2010-02-26 | 1 | -1/+1 | |
| | ||||||
* | WIP: Remove the global router | Carlhuda | 2010-02-25 | 1 | -21/+50 | |
| | ||||||
* | Revert "Fix test load paths for those not using bundler" | Carlhuda | 2010-02-23 | 1 | -7/+1 | |
| | | | | | | This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818. This commit broke tests. You cannot have a file called "bundler" on the load path. | |||||
* | Use ActionDispatch::Routing everywhere | Martin Schürrer | 2010-02-21 | 1 | -9/+9 | |
| | ||||||
* | Fix test load paths for those not using bundler | Joshua Peek | 2010-02-15 | 1 | -1/+7 | |
| | ||||||
* | Get rails tests running on bundler 0.9 | Carl Lerche | 2010-01-31 | 1 | -10/+1 | |
| | ||||||
* | Cookies middleware | Joshua Peek | 2010-01-16 | 1 | -0/+1 | |
| | ||||||
* | Move Flash into middleware | Joshua Peek | 2010-01-15 | 1 | -0/+2 | |
| | ||||||
* | Make HEAD method masquerade as GET so requests are routed correctly | Joshua Peek | 2010-01-15 | 1 | -1/+1 | |
| | ||||||
* | Add subscriber for ActionPack and move all logging inside it. | José Valim | 2010-01-13 | 1 | -26/+0 | |
| | ||||||
* | Trash string coercion rack hacks | Joshua Peek | 2010-01-04 | 1 | -1/+0 | |
| | ||||||
* | Autoload AS test case | Joshua Peek | 2010-01-04 | 1 | -1/+0 | |
| | ||||||
* | Autoload AC and AV test case classes | Joshua Peek | 2010-01-04 | 1 | -1/+0 | |
| | ||||||
* | Use namespaces in notifications. | José Valim | 2010-01-03 | 1 | -1/+4 | |
| | ||||||
* | Remove ActionView inline logging to ActiveSupport::Notifications and create ↵ | José Valim | 2009-12-26 | 1 | -0/+23 | |
| | | | | ActionController::Base#log_event, so everything can be logged within one listener. Also expose log_process_action as a hook for different modules to include their own information during the action processing. This allow ActiveRecord to hook and any other ORM. Finally, this commit changes 'Processing' and 'Rendering' in logs to 'Processed' and 'Rendered' because at the point it's logged, everying already happened. | |||||
* | Fully expand relative rails framework paths and make sure we aren't | Joshua Peek | 2009-12-16 | 1 | -8/+7 | |
| | | | | adding any to the load path more than once. | |||||
* | TestProcess belongs in AD | Joshua Peek | 2009-12-12 | 1 | -1/+1 | |
| | ||||||
* | Use new routing dsl in tests | Joshua Peek | 2009-12-08 | 1 | -1/+1 | |
| | ||||||
* | Find all controllers in memory to use for routing | Joshua Peek | 2009-11-23 | 1 | -12/+0 | |
| | ||||||
* | Avoid adding component lib/ to load path multiple times | Joshua Peek | 2009-11-09 | 1 | -1/+3 | |
| | ||||||
* | Remove preflight lib check during AP tests. Bundler resolves this issue | Joshua Peek | 2009-11-09 | 1 | -6/+0 | |
| | ||||||
* | Don't warn me if I'm not using bundler to run tests | Joshua Peek | 2009-11-09 | 1 | -1/+0 | |
| | ||||||
* | Remark when bundled env require fails | Jeremy Kemper | 2009-11-09 | 1 | -0/+1 | |
| | ||||||
* | Extract routing controller stub helper into abstract unit | Joshua Peek | 2009-10-27 | 1 | -0/+20 | |
| | ||||||
* | Always add actionpack/lib to load path for isolated tests | Joshua Peek | 2009-10-21 | 1 | -1/+1 | |
| | ||||||
* | Have all the tests running off a single Gemfile | Yehuda Katz + Carl Lerche | 2009-10-20 | 1 | -8/+7 | |
| | ||||||
* | Work around apparent bug in 1.9 | Yehuda Katz | 2009-10-15 | 1 | -2/+2 | |
| | ||||||
* | Don't push siblings on load path if using bundled env | Jeremy Kemper | 2009-10-14 | 1 | -5/+8 | |
| | ||||||
* | Coerce all out going body parts to Strings | Joshua Peek | 2009-10-05 | 1 | -0/+1 | |
| |