aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't need h in there now that XSS protection is on by defaultMichael Koziarski2009-10-082-2/+2
|
* Use indifferent access attributes instead of stringifying themPratik Naik2009-10-082-2/+10
|
* error procs have to be safe tooMichael Koziarski2009-10-081-1/+1
|
* Allow accepts_nested_attributes_for :reject_if option accept symbols for ↵Pratik Naik2009-10-073-6/+57
| | | | | | | | using a method Conflicts: activerecord/lib/active_record/nested_attributes.rb
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-0836-42/+368
| | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration.
* Do not ignore .empty_directory files.José Valim2009-10-071-1/+1
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* Rewrite ActiveModel::Lint as a simple TU mixinJoshua Peek2009-10-072-80/+38
|
* Fixed behavior of attribute_methods_generated? [#3220 state:resolved]Sam Pohlenz2009-10-072-1/+27
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Don't share attribute matchers between classes [#3216 state:resolved]Sam Pohlenz2009-10-072-1/+24
| | | | | | | Allows separate models that include ActiveModel::AttributeMethods to use different sets of attribute matchers. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Not calling a private method anymoreYehuda Katz2009-10-071-2/+5
|
* Fix warning spewYehuda Katz2009-10-061-1/+3
|
* Call initialize_copy when cloning [#3164 state:resolved]Paul Gillard2009-10-062-28/+39
| | | | | | | | Cloned AR objects are now instantiated through initialize_copy rather than new/initialize. This allows AR classes to override initialize_copy in order to implement deep cloning. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* don't ignore all bin directoriesMichael Koziarski2009-10-061-1/+0
|
* MessageVerifier#verify raises InvalidSignature if the signature is blankJeffrey Hardy2009-10-052-0/+7
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Coerce all out going body parts to StringsJoshua Peek2009-10-055-0/+72
|
* Yank FCGI Handler from coreJoshua Peek2009-10-059-781/+0
| | | http://github.com/rails/fcgi_handler
* Rewrite FCGI handler testJoshua Peek2009-10-053-34/+46
|
* Try to load lib before trying to activate the gem for testingJoshua Peek2009-10-051-2/+6
|
* Put test in place for deprecated dispatcherJoshua Peek2009-10-051-0/+7
|
* More robust console testJoshua Peek2009-10-053-43/+56
|
* Revert "Revert "Fix Dispatch.new so passenger works" as it broke the build"Joshua Peek2009-10-051-1/+1
| | | | This reverts commit 49b52cadc2e66c11a025e7719837ae77b3736046.
* Revert "Fix Dispatch.new so passenger works" as it broke the buildMichael Koziarski2009-10-051-1/+1
| | | | This reverts commit c97c31b096e627480b64403d1460065738941c3e.
* Fix Dispatch.new so passenger worksJoshua Peek2009-10-041-1/+1
|
* Only draw default route onceJoshua Peek2009-10-031-22/+37
|
* Use with_routing helper in tests instead of modifying global route setJoshua Peek2009-10-034-101/+125
|
* Redraw default routes on all internal integration tests. We don't need ↵Joshua Peek2009-10-0315-41/+34
| | | | SimpleRouteCase anymore
* Avoid creating new controller constants during test runtime. All routable ↵Joshua Peek2009-10-032-68/+21
| | | | controllers should be defined beforehand.
* Run AP isolated tests on CIJoshua Peek2009-10-031-0/+1
|
* Moved shared form helper models into fake_modelsJoshua Peek2009-10-033-99/+98
|
* NumberHelper depends on big decimal extensionsJoshua Peek2009-10-031-0/+1
|
* Changing directories during the test breaks file loading when ran by itselfJoshua Peek2009-10-032-32/+22
|
* Don't load rubygems for isolated testsJoshua Peek2009-10-031-2/+3
|
* Move improved isolated test runner to APJoshua Peek2009-10-032-6/+21
|
* File extra test folders into controller, dispatch, or templateJoshua Peek2009-10-0326-18/+17
|
* Add custom "with_routing" to internal tests to fix reseting session after usingJoshua Peek2009-10-0314-20/+30
| | | | with_routing. This only affects our internal AP tests.
* Cleanup whitespace introduced in 8377646 and f4f6888Joshua Peek2009-10-023-55/+47
|
* add indifferent access to the attributesTaryn East2009-10-023-1/+30
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* update_attribute(s) added to Active ResourceTaryn East2009-10-022-2/+81
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Initialize a new instance of Rails.application during integration testsCarl Lerche2009-09-301-1/+1
| | | This is to fix the AWDWR tests until the application object is refactored to be a singleton.
* Remove all calls to Rails::Initializer from boot.rbCarl Lerche2009-09-306-49/+70
| | | | This is starting a refactor of the rails initialization process. The boot.rb file will not remain the same.
* Remove a duplicate initializerCarl Lerche2009-09-291-12/+0
|
* Change Rails::Application to a class that is inherited from.Carl Lerche2009-09-295-30/+25
| | | This is still very experimental.
* Remove unneeded files from the railties test directoryCarl Lerche2009-09-2914-56/+0
|
* Fix the broken railties isolation testsCarl Lerche2009-09-298-121/+86
|
* Create the application object from config/environment.rbYehuda Katz + Carl Lerche2009-09-286-59/+46
| | | | | This is preliminary and not necessarily reflective of the full plan.
* Ported the new ActionView::TestCase from 2-3-stable to master [#3260Erik Ostrom2009-09-288-38/+278
| | | | | | | | | | | | | | | | | state:resolved] The test case now mimicks the template environment more closely, so it's possible to use render, load helper dependencies. This also fixes assert_select, and similar assertions. Because view tests and helpers generally don't render full templates assert_select looks first in rendered and then in output_buffer to find the rendered output. Additional `master'-only changes: Made the Action Pack Rakefile run the ActionView::TestCase tests, and made ActionView::Rendering#_render_text always return a string. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Remove SQLite2 from CI setupMike Gunderloy2009-09-282-4/+2
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Make has_one with :conditions hash scope build or creation of the associated ↵Luciano G Panaro2009-09-285-3/+34
| | | | | | | object with those conditions Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3088 state:committed]
* Escaping symbol passed into Memoizable's flush_cache for query methods to ↵Jay Pignata2009-09-282-3/+12
| | | | | | | | allow them to be cleared Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3138 state:committed]
* Allow PKG_NAME env variable to control the directory name used when 'rake ↵John Trupiano2009-09-281-1/+1
| | | | | | | dev' is used to generate a new rails app. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#3278 state:committed]