aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/test_help.rb
Commit message (Collapse)AuthorAgeFilesLines
* Require action_controller before any other action_controller fileRafael Mendonça França2014-04-101-0/+1
| | | | | | This will load properly the loading hooks. Closes rails/sass-rails#205
* Automatically maintain test database schemaJon Leighton2014-01-021-0/+2
| | | | | | | | | | | | | | * Move check from generated helper to test_help.rb, so that all applications can benefit * Rather than just raising when the test schema has pending migrations, try to load in the schema and only raise if there are pending migrations afterwards * Opt out of the check by setting config.active_record.maintain_test_schema = false * Deprecate db:test:* tasks. The test helper is now fully responsible for maintaining the test schema, so we don't need rake tasks for this. This is also a speed improvement since we're no longer reloading the test database on every call to "rake test".
* Change all `MiniTest` to `Minitest` since, `MiniTest` namespace has been ↵Vipul A M2013-12-181-1/+1
| | | | | | renamed to `Minitest` Ref: https://github.com/seattlerb/minitest/blob/master/History.txt
* BACKTRACE environment variable to show unfiltered backtraces.Yves Senn2013-11-041-1/+3
| | | | | | | | | | | We used to support the `BACKTRACE` environment variable but when we switched to MiniTest it got removed: f9382cd7948 This commit adds back the functionality to show the unfiltered backtrace when needed. This also works when you run your tests with `rake`: * `BACKTRACE=1 bin/rake test` * `BACKTRACE=1 ruby -Itest ...`
* Added generated unit test for generator generator and new test:generators ↵Josef Šimánek2013-07-161-0/+1
| | | | rake task included in test:all rake task.
* Don't configure Turn output, we aren't using it since 3.2.0Guillermo Iguaran2013-01-071-7/+0
|
* Don't require 'turn' from rails/test_helpAaron Suggs2013-01-071-5/+2
| | | | | | | | | | | | If 'turn' is in the Gemfile with `:require => nil`, Rails should respect that. This supports the case where 'turn' may or may not be required depending on different developers' preference or environment. E.g., you require turn for local testing, but not on your CI server by putting this in `test/test_helper.rb`: require 'turn' if ENV['TURN']
* Add active_support/testing/autorunRafael Mendonça França2012-12-311-1/+1
| | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails
* Rename "Fixtures" class to "FixtureSet"Alexey Muranov2012-10-071-2/+2
| | | | Rename `ActiveRecord::Fixtures` class to `ActiveRecord::FixtureSet`. Instances of this class normally hold a collection of fixtures (records) loaded either from a single YAML file, or from a file and a folder with the same name. This change make the class name singular and makes the class easier to distinguish from the modules like `ActiveRecord::TestFixtures`, which operates on multiple fixture sets, or `DelegatingFixtures`, `::Fixtures`, etc., and from the class `ActiveRecord::Fixture`, which corresponds to a single fixture.
* use Rails backtrace in testsFrancesco Rodriguez2012-10-051-0/+4
|
* update test_help to config properly turn natural language optionFrancesco Rodriguez2012-07-061-1/+4
| | | | | | | | | | | | Last versions of Turn don't monkey patch MiniTest to setup the natural language option. Here is an [example](https://github.com/TwP/turn/blob/master/try/test_autorun_minitest.rb#L3). This patches the following behaviour: $ rake test:units `<top (required)>': undefined method `use_natural_language_case_names=' for MiniTest::Unit:Class (NoMethodError)
* Remove IdentityMapCarlos Antonio da Silva2012-03-131-4/+0
|
* if turn available then ↵Vishnu Atrai2012-01-071-4/+1
| | | | MiniTest::Unit.respond_to?(:use_natural_language_case_names=) available
* Merge pull request #4360 from rafaelfranca/patch-1Aaron Patterson2012-01-061-13/+6
|\ | | | | Remove more references to Test::Unit
| * MiniTest is always defined in this caseRafael Mendonça França2012-01-061-8/+6
| |
| * Test::Unit::Util::BacktraceFilter is never definedRafael Mendonça França2012-01-061-5/+0
| |
* | require minitest rather than test/unitAaron Patterson2012-01-061-1/+1
|/
* do not require a file that is not usedAaron Patterson2012-01-051-2/+0
|
* Modified how to handle if ActiveRecord is defined.Yasuo Honda2011-09-301-1/+1
|
* Removed AS core_ext/kernel/requires as it's not used and is bad practice.Josh Kalderimis2011-05-231-1/+0
|
* make turn a soft dependency. generate a Gemfile that contains turn and ↵Aaron Patterson2011-04-081-3/+7
| | | | require turn if it is available
* Moved Turn activation/dependency to railtiesDavid Heinemeier Hansson2011-03-311-0/+8
|
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-201-11/+0
|\ | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * do not require ruby-debug automatically. please require it if you have ↵Aaron Patterson2010-11-191-11/+0
| | | | | | | | declared it as a dependency
* | Flush IdentityMap when running tests.Emilio Tagua2010-11-191-0/+4
|/
* Remove deprecated stuff in ActionControllerCarlos Antonio da Silva2010-09-261-1/+1
| | | | | | This removes all deprecated classes in ActionController related to Routing, Abstract Request/Response and Integration/IntegrationTest. All tests and docs were changed to ActionDispatch instead of ActionController.
* Update abort message (ht: tilsammans).José Valim2010-09-251-1/+1
|
* only abort in test_help in production envDavid Chelimsky2010-09-241-3/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make assert_recognizes work in IntegrationTest [#4390 state:committed]Matthew Rudy Jacobs2010-04-241-1/+3
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Missed a few spots in railtiesJoshua Peek2010-03-301-1/+1
|
* Explicitly require files before monkey patching them.José Valim2010-03-231-1/+5
|
* Better with #abortJoao Carlos2010-03-031-4/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* #exit accepts an integer, not a stringJoao Carlos2010-02-281-1/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename named_url_helpers to url_helpers and url_helpers to url_forCarlhuda2010-02-261-1/+1
|
* Get URL helpers working again in integration tests.Carlhuda2010-02-251-0/+4
|
* Final pass at removing the router from a global constantCarlhuda2010-02-251-0/+6
|
* Resolve test/unit load ordering by removing backtrace filter from boot ↵Jeremy Kemper2010-02-111-0/+6
| | | | initializers
* Get everyone running on Rails.env and fix the broken environment settings ↵David Heinemeier Hansson2010-01-111-1/+1
| | | | for script/console and script/dbconsole
* use_instantiated_fixtures and use_transactional_fixtures defaults are set in ↵Joshua Peek2010-01-041-2/+0
| | | | active_record/fixtures
* rack and rack-test are pulled in by ADJoshua Peek2010-01-041-3/+0
|
* Autoload AR test caseJoshua Peek2010-01-041-3/+0
|
* Autoload AMo test caseJoshua Peek2010-01-041-2/+0
|
* Autoload AM test case classJoshua Peek2010-01-041-1/+0
|
* Autoload AC and AV test case classesJoshua Peek2010-01-041-4/+0
|
* Dont auto require rubygems, move dep on rack-test to GemfileDavid Heinemeier Hansson2009-12-221-3/+2
|
* Don't require AD test_caseJoshua Peek2009-12-121-1/+0
|
* Reorganize autoloads:Carlhuda2009-12-021-0/+6
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the ↵Carl Lerche2009-10-161-1/+1
| | | | application's object root)
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+41