aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Require Mocha >= 0.9.3 which includes a MiniTest adapterJeremy Kemper2008-11-231-6/+3
|
* Reflect default locale change from en-US to enJeremy Kemper2008-11-191-3/+3
|
* Added config.i18n settings gatherer to config/environment, auto-loading of ↵David Heinemeier Hansson2008-11-181-2/+47
| | | | all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
* Add helper test generators [#1199 state:resolved]Eugene Bolshakov2008-11-175-27/+83
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Appropriate test case subclasses to get assert_tag and assert_deprecatedJeremy Kemper2008-11-152-2/+2
|
* Really silence spec warnings when running GemDependency tests [#1308 ↵Jeffrey Hardy2008-10-311-3/+2
| | | | | | state:resolved] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Don't include the path when checking class collisions [#545 state:resolved]Joshua Peek2008-10-131-0/+3
|
* Make VendorGemSourceIndex handle broken/missing specs generated by previous ↵Matt Jones2008-10-134-0/+50
| | | | | | versions. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix a number of errors in the config.gem mechanism.Matt Jones2008-10-0511-5/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rails::GemDependency was missing definitions for hash and eql?, causing Array#uniq to not work. * If several versions of a gem are unpacked in vendor, now chooses the highest if no version is specified. * streamlined add_load_path. Now sets up Rubygems correctly to allow 'gem' to find frozen gems, with gems frozen to vendor/gems and specifications in vendor/gems/<gem-name>/.specification * Rails::GemDependency#specification would return a spec for the highest installed version, even for frozen gems and/or previously loaded lower versions. See in part ticket #1123. * removed vendor from default_load_paths - it was causing autoloading to append Gems::Gems::<gem-dir> to constant names * added additional tests for loading frozen gems. * incorporates the fix from #1107 for vendor rails * defers to freeze:gems for handling the Rails framework. gems:unpack WILL NOT place a copy of Rails in vendor/gems. Should close #1123 completely. * incorporates, via using the gem loader for frozen gems, fixes corresponding to #227, #324, #362, #527, and #742. * gem plugins now work the same whether frozen or not. Correctness of the behavior is a matter for another ticket... Signed-off-by: rick <technoweenie@gmail.com>
* Partially revert 185fe2e9cce737d69d3b47a656f3651ce152c0c1Michael Koziarski2008-09-241-1/+1
| | | | We shouldn't quote the unpack command's requirement as it's passed through GemRunner which takes care of it for us.
* Prevent deprecation warning in the testsMichael Koziarski2008-08-281-1/+3
|
* Deprecate Rails::SecretKeyGenerator in favor of ActiveSupport::SecureRandom.Hongli Lai (Phusion2008-08-271-8/+0
| | | | | | | SecureRandom has a few minor security enhancements and can be used as a drop-in replacement Signed-off-by: Michael Koziarski <michael@koziarski.com> [#913 state:committed]
* The 'rails' command was broken by the last commit. Fix that.Hongli Lai (Phusion2008-08-261-1/+7
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* When an unexpected exception is caught, tell the administrator to read the ↵Hongli Lai (Phusion2008-08-261-0/+37
| | | | | | log file for more information about the error. This should make things less confusing for developers who are new to Rails. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Generate belongs_to association when generating a modelTarmo Tänav2008-08-231-0/+8
|
* Generate belongs_to associations automatically for 'references' types [#640 ↵Tarmo Tänav2008-08-231-0/+8
| | | | state:resolved]
* Initializer to sort files before eager loading. [#859 state:resolved]Tom Ward2008-08-223-0/+23
| | | | | | | | Changed Rails::Initializer to sort files before eager loading them. This ensures that any files in a parent directory will be loaded before files in a subdirectory of the 'same' name. i.e. zoo.rb will be loaded before zoo/reptile_house.rb Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make requiring gems optional.Ben Sandofsky2008-08-041-0/+9
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#743 state:resolved]
* Check for ActionMailer and ActionController before attempting to eager load ↵Sam Granieri2008-07-241-1/+20
| | | | | | their view paths Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Stub out timestamped_migrations in generator testsJoshua Peek2008-07-191-1/+2
|
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Added tests to show that 2d372d7 breaks old generator behavior (#545 ↵Joshua Peek2008-07-111-0/+19
| | | | state:resolved)
* Warn and uses singularized ModelName if a plural ModelName is given to ↵Pat George2008-06-271-0/+42
| | | | | | script/generate. Override with --force-plural. [#333 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix discrepancies with loading rails/init.rb from gems. [#324 state:resolved]rick2008-06-081-1/+1
|
* Make plugins initialize also from rails/init.rb to ensure consistency with ↵Jacek Becela2008-06-087-15/+33
| | | | | | gems used as plugins [#272 state:resolved]
* Wrap Initializer after_initialize inside mocha block.Joshua Peek2008-06-071-48/+48
|
* Fix that Rails::InfoController testsPratik Naik2008-06-051-0/+4
|
* Fixed deprecated call to Dependencies in plugin loader test.Joshua Peek2008-06-041-4/+4
|
* Fixed initializer tests by stubbing out gems dependencies check.Joshua Peek2008-06-021-16/+18
|
* In 9c4f003, gem installation quotes versions. Do the same for unpack and ↵Joshua Peek2008-06-021-8/+8
| | | | update tests to reflect the change.
* Merge docrails.Pratik Naik2008-05-252-31/+31
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add some test coverage for RailsControllerGenerator.Joshua Peek2008-05-132-10/+44
|
* Use .gitignore as the convention for dummy file names.Joshua Peek2008-04-246-0/+0
|
* Rails Edge info returns the latest git commit hash [#36 state:resolved]Francesc Esplugas2008-04-221-38/+32
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Don't require generator_test_helper in RailsGeneratorTest.Joshua Peek2008-04-211-3/+12
|
* Add .empty files to empty directories so git preserves them.Joshua Peek2008-04-216-0/+0
|
* * Remove default_url_options from mailer generatorCody Fauser2008-04-211-3/+3
| | | | | | * Improve mailer documentation regarding generating URLs * Add no_match to mailer generator to warn contributors about default_url_options Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Add back empty plugin folders that were lost when we moved to git.Joshua Peek2008-04-214-32/+32
|
* Revert "Update plugin loading tests to reflect changes in plugin fixtures."Joshua Peek2008-04-213-79/+86
| | | | This reverts commit eef9002968609a0d8d4a8006aebcd6f18f993f4a.
* Update plugin loading tests to reflect changes in plugin fixtures.Joshua Peek2008-04-213-86/+79
|
* Gem dependencies don't require a version. Also fixed up failing gem ↵Joshua Peek2008-04-211-0/+4
| | | | dependency tests.
* Mock RailsFCGIHandler and Dispatcher to stop mocha deprecation warnings.Joshua Peek2008-04-211-6/+24
|
* Add example for default_url_options[:host] to generated mailers.Mislav Marohnić2008-04-181-1/+4
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Changed mailer generator to not use instance variables.Mislav Marohnić2008-04-181-6/+6
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Cleanup generator tests by extracting repeated code into ↵Mislav Marohnić2008-04-185-358/+225
| | | | | | generator_test_helper. Add test for mailer generator. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Refactor Dispatcher callbacks to remove unnecessary Dependencies checks in ↵Pratik Naik2008-04-181-9/+12
| | | | production environment.
* Update fcgi dispatcher test cases. Closes #11471 [guillaume]Jeremy Kemper2008-04-031-7/+23
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improving railties test coverage. Closes #11496 [miloops]Jeremy Kemper2008-04-014-2/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update generator tests. Closes #11487 [thechrisoshow]Jeremy Kemper2008-04-015-137/+141
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added config.gem for specifying which gems are required by the application, ↵Rick Olson2008-03-301-0/+62
| | | | | | as well as rake tasks for installing and freezing gems. [rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9140 5ecf4fe2-1ee6-0310-87b1-e25e094e27de