Aaron Patterson
8392f10b58
set the environment variable from the rake file
2011-06-06 16:51:45 -07:00
Aaron Patterson
424cf3b050
more oracle fixes
2011-06-06 15:47:29 -07:00
Aaron Patterson
517ca8771c
do not muck with the load path, that is the test task responsibility
2011-06-06 15:47:26 -07:00
Aaron Patterson
841d29639b
updating configs for oracle
2011-06-06 15:47:22 -07:00
Aaron Patterson
c8d124c0fc
add test to the include path
2011-06-06 15:47:17 -07:00
Aaron Patterson
61774e0d49
please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT
2011-06-06 15:47:13 -07:00
Xavier Noria
6cf458823f
Merge branch 'master' of git://github.com/lifo/docrails
2011-06-06 22:50:09 +02:00
Vijay Dev
1f272538bd
add info about docrails policy on changelogs
2011-06-07 02:03:48 +05:30
Jon Leighton
445c0607f7
Don't ensure all keys in build_results are only written once, otherwise we get false positive builds reported.
2011-06-06 21:27:29 +01:00
Jon Leighton
499dec0102
Make sure that the build/drop database rake tasks take account of the test/config.yml config
2011-06-06 21:27:28 +01:00
Xavier Noria
5e21247131
Merge branch 'master' of git://github.com/lifo/docrails
...
Conflicts:
activerecord/RUNNING_UNIT_TESTS
2011-06-06 22:23:30 +02:00
Xavier Noria
689e12b828
Revert "updated Changelog "
...
This reverts commit 79990505e5080804b53d81fec059136afa2237d7.
Conflicts:
activerecord/CHANGELOG
Reason: Sorry, CHANGELOGs can't be edited via docrails.
2011-06-06 22:12:34 +02:00
Vijay Dev
5d8df14d6d
comment the recorder methods
2011-06-07 01:38:03 +05:30
Vijay Dev
428883b579
up and down are no longer class methods in a migration
2011-06-07 01:23:08 +05:30
Vijay Dev
c5786a951e
rearrange sections of the commandline guide giving more importance to rake tasks
2011-06-07 01:00:07 +05:30
Vijay Dev
660fb143fb
document assets related rake tasks
2011-06-07 00:16:43 +05:30
Jon Leighton
38ad6bb2f5
Fix double definition of #teardown. Thanks @mike-burns 👍
2011-06-06 17:57:02 +01:00
Jon Leighton
afe1911228
Fix another CIfail ⚡ 🔥 Deleting RAILS_ENV from ENV doesn't produce the desired result if RACK_ENV is still defined. And in any case it's better to be explicit here, so just set RALS_ENV=development.
2011-06-06 17:57:02 +01:00
Aaron Patterson
fe5a6ec45f
remove call to source index
2011-06-06 09:52:40 -07:00
David Heinemeier Hansson
73b64bcd15
Use Latest Sprockets beta
2011-06-06 18:37:35 +02: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
José Valim
2d3ba54b86
Merge pull request #1504 from arunagw/console_test_for_ci_server
...
Fix for CI server. Dependent on RAILS_ENV=development
2011-06-06 03:52:34 -07:00
Arun Agrawal
5d78d81222
Fix for CI server. Dependent on RAILS_ENV=development
2011-06-06 16:13:22 +05:30
Mariusz Pękala
c0c0a64ce6
Validations guide: order of :after_save callback was incorrect.
...
The guide was contracting itself. First it stated that 'there is a list
of callbacks in order of execution', on the list 'after_save' was placed
before 'after_create', and then there was a warning that 'after_save'
runs after them. I am not sure about 'around_' callbacks, but let's
leave that for another patch.
2011-06-06 11:51:18 +02:00
José Valim
38b97d289c
Merge pull request #1497 from arunagw/framework_test
...
framework_test.rb also dependent on RAILS_ENV=development
2011-06-06 02:43:32 -07:00
Guillermo Iguaran
d3d5b048f9
Change http://api.rubyonrails.com to http://api.rubyonrails.org
2011-06-05 20:36:09 -07:00
Mohammad Typaldos
a620e65053
Edited railties/guides/source/asset_pipeline.textile via GitHub
2011-06-05 14:49:50 -07:00
Vijay Dev
a2cf91a1a4
minor edits in migrations guide
2011-06-06 02:10:38 +05:30
Arun Agrawal
8e51383a6b
loading_test.rb with RAILS_ENV=development
2011-06-06 00:55:24 +05:30
Arun Agrawal
11d41e8b20
framework_test.rb also dependent on RAILS_ENV=development
2011-06-06 00:43:49 +05:30
Jon Leighton
f9b41237c8
load_path_test.rb is also dependent on RAILS_ENV=development
2011-06-05 18:27:52 +01:00
Vijay Dev
e1b202fc70
annotate class_eval method for active resource schema attributes
2011-06-05 21:44:04 +05:30
Guillermo Iguaran
c2c8ef57d6
Remove trailing white-spaces
2011-06-05 10:34:40 -05:00
Andrew White
4ecca0f985
Move CHANGELOG entry to future version
2011-06-05 12:52:14 +01:00
Andrew White
e864ff7259
Add backward compatibility for testing cookies
...
This commit restores the ability to assign cookies for testing via
@request.env['HTTP_COOKIE'] and @request.cookies, e.g:
@request.env['HTTP_COOKIE'] = 'user_name=david'
get :index
assert_equal 'david', cookies[:user_name]
and
@request.cookies[:user_name] = 'david'
get :index
assert_equal 'david', cookies[:user_name]
Assigning via cookies[] is the preferred method and will take precedence
over the other two methods. This is so that cookies set in controller
actions have precedence and are carried over between calls to get, post, etc.
2011-06-05 12:34:27 +01:00
Andrew White
0a9270417c
Ensure cookie keys are strings
2011-06-05 12:03:31 +01:00
Jon Leighton
523c7c2330
Fix adapter_test.rb to make no assumptions about the database name
2011-06-05 11:28:17 +01:00
Jon Leighton
3b7d100b51
Fix typo
2011-06-05 11:28:17 +01:00
José Valim
cc2851b848
Merge pull request #1426 from arunagw/sprockets_gem_update
...
sprockets gem update to beta9
2011-06-05 01:55:24 -07:00
José Valim
b5b31658bc
Merge pull request #1462 from arunagw/test_added_for_namedscope
...
Test added for namedscope target.
2011-06-05 00:12:05 -07:00
José Valim
9cdd606a9b
Merge pull request #1488 from guilleiguaran/multiple_sources_in_sprocket_helpers
...
Allow multiple sources in Sprockets helpers
2011-06-05 00:10:18 -07:00
Guillermo Iguaran
db8eeaff06
Allow multiple sources in Sprockets helpers
2011-06-05 01:01:35 -05:00
Jon Leighton
75e56101d4
Bring back oracle specific crap
2011-06-04 23:49:54 +01:00
Jon Leighton
253bb6b926
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
2011-06-04 23:47:03 +01:00
Jon Leighton
cdce7ff191
Force RAILS_ENV=development in rackup_test.rb. This fixes a problem on the CI server. For some reason the RAILS_ENV on the CI server is production, which means that the ActionDispatch::Static middleware is not used, and so the request in 'config.ru can be racked up' returns a 404 rather than a 200.
2011-06-04 23:47:03 +01:00
Xavier Noria
1c527afe87
adds Vijay Dev to the new Rails Guides Reviewers team
...
See http://weblog.rubyonrails.org/2011/6/2/news-from-the-documentation-front
2011-06-05 00:13:50 +02:00
Vijay Dev
9f19322b1f
correct code indendation in the initialization guide
2011-06-05 00:58:21 +05:30
Vijay Dev
087f8e16a6
s/ActiveRecord/Active Record according to api guidelines
2011-06-04 23:51:00 +05:30
Vijay Dev
9d15a35981
minor corrections in generators guide
2011-06-04 20:44:11 +05:30
Vijay Dev
50487bd0ef
fix incorrect module name for wrap parameters
2011-06-04 20:28:16 +05:30