1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

27 commits

Author SHA1 Message Date
Jeremy Kemper
1225b2f76e Remove warning about fixture loading order from test_helper since we disable foreign key checks now. [Mike Clark]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-14 22:50:56 +00:00
Jeremy Kemper
3ba23348de Excise generated whitespace. Closes #10017 [Tim Pope]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-29 21:40:23 +00:00
Marcel Molina
423788371a Fix typo in test_helper. Closes #9925 [viktor tron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-26 01:07:41 +00:00
David Heinemeier Hansson
4af5dbbfcc A set secret causes trouble with the cookie store
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7704 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-01 02:02:50 +00:00
Rick Olson
82ff27766d Better error messages if you leave out the :secret option for request forgery protection. Closes #9670 [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7671 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-28 16:50:48 +00:00
David Heinemeier Hansson
eca3b790b5 Give a pointer on where to look for more
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7620 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-24 22:52:35 +00:00
Rick Olson
605aadb3cd protect new rails apps from csrf by default.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-24 18:11:59 +00:00
David Heinemeier Hansson
23e24c5996 Setting fixtures automatically for integration tests is a bit harder -- will have to wait until the test superclass reform is implemented
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-25 19:27:56 +00:00
David Heinemeier Hansson
87b7b5b3e7 Added fixtures :all to test_helper.rb to assume that most people just want all their fixtures loaded all the time [DHH] Added fixtures :all as a way of loading all fixtures in the fixture directory at once (closes #7214) [manfred]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6227 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-25 17:31:43 +00:00
David Heinemeier Hansson
08a533645e Make it a default assumption that you want all helpers, all the time (yeah, yeah)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6222 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-24 20:33:47 +00:00
Jeremy Kemper
5a1251dc2d Session configuration in config/environment.rb instead of app/controllers/application.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-22 00:57:02 +00:00
Jeremy Kemper
45dd256889 Missed commit for [6184]. Generate a random secret for new app's cookie session store.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-02-21 23:13:32 +00:00
David Heinemeier Hansson
fa207c2446 Disabling sessions is not a common day event
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4352 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-21 16:51:46 +00:00
Jeremy Kemper
0adcd811f9 The app generator sets a session key in application.rb so apps running on the same host may distinguish their cookies. Closes #2967.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-05-07 08:28:42 +00:00
Jeremy Kemper
0a6d608253 Beef up test fixtures documentation for test/test_helper.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-29 07:32:33 +00:00
David Heinemeier Hansson
d72201e438 Backed out of setting testing settings through initializer as that would break backwards compatibility
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2618 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 17:47:46 +00:00
David Heinemeier Hansson
e3bb9e7a9c Cleaned up test_helper
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2606 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 03:02:28 +00:00
David Heinemeier Hansson
6027d376b9 Cleaned up some docs
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2598 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-15 01:10:12 +00:00
David Heinemeier Hansson
07afb1fd42 Made it even easier to turn on transactional fixtures
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-04 09:27:55 +00:00
David Heinemeier Hansson
e04e82ba82 Made it even easier to turn on transactional fixtures
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-04 09:24:31 +00:00
David Heinemeier Hansson
791e66b2da Fixed the test_helper.rb to be safe for requiring controllers from multiple spots, like app/controllers/article_controller.rb and app/controllers/admin/article_controller.rb, without reloading the environment twice #1390 [Nicholas Seckar]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-06-16 06:08:55 +00:00
David Heinemeier Hansson
2581806abd Added web_service generator (run ./script/generate web_service for help) #776 [Leon Bredt]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-03-06 14:01:52 +00:00
David Heinemeier Hansson
dbb5341691 Added that rake clone_structure_to_test, db_structure_dump, and purge_test_database tasks now pick up the source database to use from RAILS_ENV instead of just forcing development #424 [Tobias Luetke]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-01-11 00:07:35 +00:00
David Heinemeier Hansson
4d9cda5732 Renamed AbstractApplicationController and abstract_application.rb to ApplicationController and application.rb, so that it will be possible for the framework to automatically pick up on app/views/layouts/application.rhtml and app/helpers/application.rb
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@159 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-15 11:30:09 +00:00
David Heinemeier Hansson
317f13c2a8 Cut dependency on dev-utils by using included breakpoint lib
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-13 23:47:27 +00:00
David Heinemeier Hansson
5b38d85571 AbstractApplicationController and the individual controllers are now completely reloaded on each request if "reload_dependencies" is set to true. This makes it possible to REMOVE methods and constants and have the changes reflected. Beaware that this is still not possible for models, though.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@31 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-30 17:19:01 +00:00
David Heinemeier Hansson
db045dbbf6 Initial
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-24 01:04:44 +00:00