- 06 6月, 2011 3 次提交
-
-
由 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 9 次提交
-
-
由 José Valim 提交于
Require attr_internal before using in ActionView::Helpers
-
由 Ernie Miller 提交于
-
由 Damien Mathieu 提交于
-
由 José Valim 提交于
Don't add .rb in requires
-
由 Jon Leighton 提交于
-
由 Guillermo Iguaran 提交于
-
由 Aaron Patterson 提交于
Isolated PostgreSQL test into PostgreSQL folder
-
由 Prem Sichanugrist 提交于
-
由 Andrew White 提交于
ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load_missing_constant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. Closes #1423
-