Commit Graph

2950 Commits

Author SHA1 Message Date
Jamis Buck
1a91abe645 Add integration test support to app generation and testing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3702 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 18:57:32 +00:00
Jamis Buck
9507f5dcc9 Add ActionController::IntegrationTest to allow high-level testing of the way the controllers and routes all work together
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3701 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 18:15:46 +00:00
Jeremy Kemper
1b3bae967d Add missing fixtures for #3937.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3700 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 17:46:16 +00:00
David Heinemeier Hansson
c62c392289 Make clearing follow the object:action naming of the rest of the tasks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 16:35:29 +00:00
David Heinemeier Hansson
14a8782e4f Make clearing follow the object:action naming of the rest of the tasks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 16:34:16 +00:00
David Heinemeier Hansson
1c59702464 Make clearing follow the object:action naming of the rest of the tasks
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 16:28:11 +00:00
David Heinemeier Hansson
fed41fbe8b Added support to AssetTagHelper#javascript_include_tag for having :defaults appear anywhere in the list, so you can now make one call ala javascript_include_tag(:defaults, "my_scripts") or javascript_include_tag("my_scripts", :defaults) depending on how you want the load order (closes #3506) [Bob Silva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 05:16:34 +00:00
David Heinemeier Hansson
b56cac56dd Added new column to all db definitions. Where, oh where, is our hereo that will convert all the legacy fixture schemas to schema.rb? (closes #3993) [Bob Silva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 04:23:44 +00:00
Nicholas Seckar
1383d1c3b9 Change Fixtures.create_fixtures arity to be backwards compatible
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-28 00:40:33 +00:00
Jeremy Kemper
3cfea287ba Speed up class -> connection caching and stale connection verification. Closes #3979.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3693 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 21:37:30 +00:00
David Heinemeier Hansson
418a7af455 Rails now depend on Rake 0.7.x
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3692 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 20:54:11 +00:00
Nicholas Seckar
2bb52dcba0 Fix delerious changelog
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 20:36:40 +00:00
Nicholas Seckar
ada11d6313 Add set_fixture_class to allow the use of table name accessors with models which use set_default_name. Closes #3935
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 20:29:28 +00:00
Thomas Fuchs
d0bd952aff Added support for visual effects scoped queues to the visual_effect helper #3530 [Abdur-Rahman Advany]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3687 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 10:37:59 +00:00
David Heinemeier Hansson
abe5b1573e Load, not dump, schema to test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 06:03:50 +00:00
David Heinemeier Hansson
018e7f24f0 Only load .yml files in sub-directories
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 05:26:42 +00:00
David Heinemeier Hansson
4df3554e8f Include functionals in default test run
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3684 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 05:20:48 +00:00
David Heinemeier Hansson
91247b6167 Added that fixtures to placed in subdirectories of the main fixture files are also loaded (closes #3937) [dblack@wobblini.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 05:14:57 +00:00
David Heinemeier Hansson
adccb319e2 doc fix (closes #3972) [robby]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3682 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 05:10:04 +00:00
David Heinemeier Hansson
8203a2afc1 Dont require association classes before theyre supposed to be used (closes #3976) [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3681 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 04:45:36 +00:00
David Heinemeier Hansson
985cb44110 Added namespaces to all tasks, so for example load_fixtures is now db:fixtures:load. All the old task names are still valid, they just point to the new namespaced names. "rake -T" will only show the namespaced ones, though [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 04:38:39 +00:00
Jeremy Kemper
1a06d324df Define attribute query methods to avoid method_missing calls. Closes #3677.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3679 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 00:27:48 +00:00
David Heinemeier Hansson
660952e5b0 CHANGED DEFAULT: ActiveRecord::Base.schema_format is now :ruby by default instead of :sql. This means that we'll assume you want to live in the world of db/schema.rb where the grass is green and the girls are pretty. If your schema contains un-dumpable elements, such as constraints or database-specific column types, you just got an invitation to either 1) patch the dumper to include foreign key support, 2) stop being db specific, or 3) just change the default in config/environment.rb to config.active_record.schema_format = :sql -- we even include an example for that on new Rails skeletons now. Brought to you by the federation of opinionated framework builders! [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3678 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-27 00:23:49 +00:00
David Heinemeier Hansson
c5ff33cd7b Example for validates_presence_of method (closes #3966) [Robby Russell]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3677 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 23:58:22 +00:00
Jeremy Kemper
6bd8e35136 ActiveRecord::Base.remove_connection explicitly closes database connections and doesn't corrupt the connection cache. Introducing the disconnect! instance method for the PostgreSQL, MySQL, and SQL Server adapters; implementations for the others are welcome. References #3591.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3674 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 23:12:01 +00:00
Jeremy Kemper
3848634a4b fix method scoping test for postgresql
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3673 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 23:03:59 +00:00
David Heinemeier Hansson
09f89c4abf Added -r/--repeat option to script/process/spawner that offers the same loop protection as the spinner did. This deprecates the script/process/spinner, so it's no longer included in the default Rails skeleton, but still available for backwards compatibility (closes #3461) [ror@andreas-s.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 20:25:24 +00:00
David Heinemeier Hansson
1215d54c2f Added support for nested scopes (closes #3407) [anna@wota.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 20:12:09 +00:00
Michael Koziarski
3cfbb4f374 Add around methods to Logger. Closes #3809
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 19:48:33 +00:00
David Heinemeier Hansson
3d1b51b441 Added .rxml (and any non-rhtml template, really) supportfor CaptureHelper#content_for and CaptureHelper#capture #3287 [Brian Takita]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 19:47:50 +00:00
Nicholas Seckar
26eaf073c4 Remove ::Controllers related cruft; fix AP tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 17:49:09 +00:00
Thomas Fuchs
d11f8d5516 Added script.aculo.us drag and drop helpers to RJS [Thomas Fuchs]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 14:20:21 +00:00
David Heinemeier Hansson
6a83ebfe70 Fixed form_for regression (closes #3962) [t.lucas@toolmantim.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 07:23:42 +00:00
David Heinemeier Hansson
841d596c24 Fixed tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 04:25:17 +00:00
Nicholas Seckar
55bb615f10 Update duplicated OrderedOptions code.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 01:56:09 +00:00
David Heinemeier Hansson
647130d7ff Added collision option to template generation in generators (closes #3329) [anna@wota.jp]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 01:12:58 +00:00
David Heinemeier Hansson
d94af9a61f mail_to shouldnt include language attribute in script tag #3364 [donald.piret@synergetek.be]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3662 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 01:10:05 +00:00
David Heinemeier Hansson
231a464d4e Fixed that form elements would strip the trailing [] from the first parameter (closes #3545) [ruby@bobsilva.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3661 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 01:07:05 +00:00
David Heinemeier Hansson
06dd7b8efa The image_tag helper is not converting the options hash to symbols (closes #3615) [agkr@pobox.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3660 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 00:55:22 +00:00
David Heinemeier Hansson
e57bd727df Added Time#beginning_of_quarter (closes #3607) [cohen.jeff@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 00:46:18 +00:00
David Heinemeier Hansson
3d0a9ff437 Aesthetics, baby
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 00:41:01 +00:00
David Heinemeier Hansson
ff7be746e0 Added more information to script/plugin's doings to ease debugging #3755 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 00:37:11 +00:00
David Heinemeier Hansson
ab7c7a8edd Fixed rdoc.options use all over (closes #3639) [andy@tinnedfruit.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 00:04:04 +00:00
David Heinemeier Hansson
09751e57b0 Fixed db2 connection with empty user_name and auth options (closes #3622) [phurley@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3655 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 00:01:13 +00:00
David Heinemeier Hansson
272729e0a3 Fixed validates_length_of to work on UTF-8 strings by using characters instead of bytes (closes #3699) [Masao Mutoh]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 23:54:57 +00:00
David Heinemeier Hansson
ad9f678d13 Compatibility patches for calculations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 23:41:51 +00:00
David Heinemeier Hansson
4bd80f110d Make TMail::Mail#has_attachments? use logic from #attachment? (closes #3815) [devslashnull@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3652 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 23:38:48 +00:00
David Heinemeier Hansson
5e99422d61 Updated docs (closes #3799) [ruby@bobsilva.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3651 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 23:33:08 +00:00
David Heinemeier Hansson
c350291ae7 Fixed that reflections would bleed across class boundaries in single-table inheritance setups (closes #3796) [lars@pind.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 23:32:24 +00:00
David Heinemeier Hansson
67a978be5d rake appdoc fails with unrecognized option (closes #3757) [Jakob S]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-25 23:27:41 +00:00