Piotr Sarnacki
f9f0f03822
Fix railties tests
...
SchemaMigration model is loaded on rails initialization,
which means that it will not be cleaned on each request.
2012-01-15 16:37:46 +01:00
Aaron Patterson
8f309e3105
convert railties to use AS::TestCase
2012-01-05 17:30:17 -08:00
José Valim
283a087634
Clean up the cache before the request in case we are running in the reload_classes_only_on_change schema.
2011-12-15 18:48:10 +01:00
José Valim
80256abb39
FileUpdateChecker should be able to handle deleted files.
2011-12-13 11:23:21 +01:00
José Valim
cd3033eb62
Add config.file_watcher so developers can provide their own watchers (for instance, hooking on fsevents).
2011-12-13 09:29:18 +01:00
José Valim
fa1d9a884c
Speed up development by only reloading classes if dependencies files changed.
...
This can be turned off by setting `config.reload_classes_only_on_change` to false.
Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading.
Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
2011-12-12 22:54:04 +01:00
Jon Leighton
62570e8626
Solve the RAILS_ENV problem in the railties tests in a more generic way
2011-06-06 13:54:05 +01:00
Arun Agrawal
8e51383a6b
loading_test.rb with RAILS_ENV=development
2011-06-06 00:55:24 +05:30
Piotr Sarnacki
e6b93fa6db
Removed deprecated router API from railties
2010-09-05 13:44:37 +02:00
Piotr Sarnacki
abeb0ff2cc
Ensure that Rails.application.initialize! is called only once
2010-09-03 22:59:07 +02:00
Piotr Sarnacki
7cccfed594
Allow Engines loading its own environment file from config/environments
2010-09-03 22:59:04 +02:00
Santiago Pastorino
b451de0d6d
Deletes trailing whitespaces (over text files only find * -type f -exec sed 's/[ \t]*$//' -i {} \;)
2010-08-14 04:12:33 -03:00
José Valim
67582f08bf
Push a failing test for issues [ #4994 ] and [ #5003 ].
2010-06-29 19:50:09 +02:00
José Valim
312f433241
Clear DescendantsTracker on each request.
2010-06-19 17:51:44 +02:00