- 07 6月, 2011 4 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
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. -
由 Aaron Patterson 提交于
-
由 David Heinemeier Hansson 提交于
-
- 06 6月, 2011 7 次提交
-
-
由 Jon Leighton 提交于
-
由 José Valim 提交于
Fix for CI server. Dependent on RAILS_ENV=development
-
由 Arun Agrawal 提交于
-
由 José Valim 提交于
framework_test.rb also dependent on RAILS_ENV=development
-
由 Arun Agrawal 提交于
-
由 Arun Agrawal 提交于
-
由 Jon Leighton 提交于
-
- 05 6月, 2011 13 次提交
-
-
由 Andrew White 提交于
-
由 Andrew White 提交于
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.
-
由 Andrew White 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 José Valim 提交于
sprockets gem update to beta9
-
由 José Valim 提交于
Test added for namedscope target.
-
由 José Valim 提交于
Allow multiple sources in Sprockets helpers
-
由 Guillermo Iguaran 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
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.
-
由 Jon Leighton 提交于
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.
-
- 04 6月, 2011 5 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
-
由 Andrew White 提交于
-
由 Andrew White 提交于
Assigning cookies for test cases should now use cookies[], e.g: cookies[:email] = 'user@example.com' get :index assert_equal 'user@example.com', cookies[:email] To clear the cookies, use clear, e.g: cookies.clear get :index assert_nil cookies[:email] We now no longer write out HTTP_COOKIE and the cookie jar is persistent between requests so if you need to manipulate the environment for your test you need to do it before the cookie jar is created.
-
- 03 6月, 2011 4 次提交
-
-
由 José Valim 提交于
Double assignment of attributes on a collection association occurs fixed #1467
-
由 Raghunadh 提交于
-
由 Andrew White 提交于
-
由 Arun Agrawal 提交于
-
- 02 6月, 2011 6 次提交
-
-
由 Jon Leighton 提交于
-
由 Piotr Sarnacki 提交于
Fix creating an empty route on 1.8. Closes #1210
-
由 Aaron Patterson 提交于
#drop_table accepts no options now.
-
由 Arun Agrawal 提交于
-
由 Vishnu Atrai 提交于
-
由 Brian Mathiyakom 提交于
Set reverse_order_value when asked to reverse_order(). Do the actual reversal in build_arel.
-
- 01 6月, 2011 1 次提交
-
-
由 José Valim 提交于
Require attr_internal before using in ActionView::Helpers
-