aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/rake_test.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Adding a test to make sure that using rake routes with the CONTROLLERwangjohn2013-05-291-0/+12
| | | | environment works correctly.
* Updates to make rails 4 happy with minitest 5:Ryan Davis2013-05-061-2/+2
| | | | | | | | | | + Namespace changes, overhaul of runners. + Internal ivar name changes - Removed a logger globally applied to tests that spew everywhere?!? + Override Minitest#__run to sort tests by name. + Reworked testing isolation to work with the new cleaner architecture. - Removed a bunch of tests that just test minitest straight up. I think these changes were all merged to minitest 4 a long time ago. - Minor report output differences.
* Added tests for `eager_load` config option to do not eager load for rake ↵Paul Nikitochkin2013-04-121-0/+17
| | | | tasks if `eager_load` is `true`
* Merge branch 'master' into railstestAaron Patterson2013-04-051-0/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (44 commits) Improve the changelog entry [ci skip] Fix explicit names on multiple file fields Correctly parse bigint defaults in PostgreSQL Move changelog to the top [ci skip] Fix indent and remove extra white spaces Fix scope chaining + STI failing test for #9869 Improve `belongs_to touch: true` timestamp test Sort modules in alphabetical order. Avoid an attempt to fetch old record when id was not present in touch callback Use the correct pk field from the reflected class to find the old record Refactor mail_to to not generate intermediate hashes when adding href Ensure mail_to helper does not modify the given html options hash Use inspect when writing the foreign key from the reflection Use a space after the comment sign when showing the result of commands Exclude template files for rdoc API [ci skip] template should have generic name use | to have more intent revealing code Revert "Merge pull request #10034 from benofsky/fix_skipping_object_callback_filters" stop depending on callbacks ... Conflicts: railties/test/application/rake_test.rb
| * fix warnings in railties testVipul A M2013-04-041-3/+3
| |
* | test no longer makes sense after requiring all test filesAaron Patterson2013-04-031-23/+1
| |
* | Revert "Update Rake tasks to call `rails test` instead"Aaron Patterson2013-04-031-13/+10
|/ | | | This reverts commit b51673fbd9563bd3ffa22e22255ca1cef80cfb6d.
* Update Rake tasks to call `rails test` insteadPrem Sichanugrist2013-03-091-10/+13
| | | | | Also, print out deprecation warning for other rake tasks except `rake test` and `rake` (default)
* Fix rake routes output in railties testCarlos Antonio da Silva2013-02-191-2/+4
|
* editorial tweaksXavier Noria2013-02-191-1/+1
|
* Use strip_heredoc in the tests as well.Steve Klabnik2013-02-181-5/+6
| | | | Thanks @sikachu. :sweat_smile:
* Add message when you have no routes defined.Steve Klabnik2013-02-181-0/+15
| | | | | | Print a message in both `rake routes` and at GET "/rails/info/routes" that lets you know you have no routes defined, as well as linking to the Rails Guide on the topic.
* Ensure the scaffold tests will pass when using references attributesRafael Mendonça França2012-12-101-0/+10
|
* Remove observers and sweepersRafael Mendonça França2012-11-281-22/+0
| | | | | | | | They was extracted from a plugin. See https://github.com/rails/rails-observers [Rafael Mendonça França + Steve Klabnik]
* Unused variable warning removedRashmi Yadav2012-11-271-1/+0
|
* Rake test:uncommitted finds git directory in ancestors.Nicolas Despres2012-11-101-0/+29
| | | | | | | | | | | | | Sometimes your git directory is an ancestor of your application root directory. For example: ./repo/.git/ ./repo/app/Rakefile In this case rake test:uncommitted will be unable to detect your SCM. This patch fixes this and add a test.
* Use Ruby 1.9 Hash syntax in railtiesRobin Dupret2012-10-141-5/+5
|
* Update test locationsMike Moore2012-10-091-6/+6
| | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional)
* Get rid of config.preload_frameworks in favor of config.eager_load_namespacesJosé Valim2012-08-211-1/+0
| | | | | | | The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly.
* Allow users to choose when to eager_load the application or not.José Valim2012-08-211-0/+24
| | | | | | | | | | | | | | | | | Previously, the eager load behavior was mostly coupled to config.cache_classes, however this was suboptimal since in some environments a developer may want to cache classes but not necessarily load them all on boot (for example, test env). This pull request also promotes the use of config.eager_load set to true by default in production. In the majority of the cases, this is the behavior you want since it will copy most of your app into memory on boot (which was also the previous behavior). Finally, this fix a long standing Rails bug where it was impossible to access a model in a rake task when Rails was set as thread safe.
* Fix wrong testcase. This is a testcase for db:test:prepare.kennyj2012-06-281-1/+1
|
* Change the behavior of db:test:prepare task when schema_format is sql for ↵kennyj2012-06-261-0/+9
| | | | consistency.
* Change the behavior of db:test:clone task when schema_format is sql for ↵kennyj2012-06-261-0/+9
| | | | consistency.
* Don't read csv file during executing db:fixtures:load.kennyj2012-06-171-0/+12
|
* Added a testcase for #6690.kennyj2012-06-121-0/+11
|
* Add a testcase for #5847.kennyj2012-05-291-0/+23
|
* Revert "Merge pull request #5995 from kennyj/fix_5847-3"José Valim2012-04-271-22/+0
| | | | | | | | Active Record should be lazy loaded and this pull request forced Active Record to always be loaded after initialization. This reverts commit 8cd14c0bc9f9429f03d1181912355d2f48b98157, reversing changes made to 2f0c8c52e66f1a2a3d1c00efc207f227124e96c2.
* Fix #5847 and #4045. Load AR::Base before loading an application model.kennyj2012-04-261-0/+22
|
* Fix GH #5435. db:structure:dump should be reenable.kennyj2012-03-171-0/+12
|
* Remove --http.José Valim2012-03-141-20/+0
|
* Fix scaffold controller template, ensure rake scaffold test pass by defaultCarlos Antonio da Silva2012-03-141-2/+23
|
* Use one system call whenever possible, group rake and Dir.chdir callsCarlos Antonio da Silva2012-03-081-14/+11
|
* Add db:schema:cache:dump and db:schema:cache:clear tasks.kennyj2012-03-011-0/+19
|
* use a regular expression for the number of passes. We only care thatAaron Patterson2012-01-061-1/+1
| | | | all tests pass, not the number of tests.
* convert railties to use AS::TestCaseAaron Patterson2012-01-051-1/+1
|
* Move SubTestTask. Soften up tests.Jeremy Kemper2011-12-211-10/+7
|
* Rename STRUCTURE to DB_STRUCTURE, update dump task description and add ↵Dieter Komendera2011-12-181-0/+8
| | | | simple testcase.
* Moves migrations tests from railties/test/application/rake_test.rb to ↵Kazimierz Kiełkowicz2011-12-071-68/+0
| | | | railties/test/application/rake/migrations_test.rb
* Move asset tests to assets_test fileGuillermo Iguaran2011-09-131-31/+0
|
* Merge pull request #2987 from kennyj/masterSantiago Pastorino2011-09-121-0/+16
|\ | | | | fix https://github.com/rails/rails/issues/2947 (with testcase)
| * fix https://github.com/rails/rails/issues/2947 (with testcase)kennyj2011-09-131-0/+16
| |
* | Merge pull request #2985 from kennyj/masterSantiago Pastorino2011-09-121-0/+16
|\| | | | | fix https://github.com/rails/rails/issues/2582 (with testcase)
| * fix https://github.com/rails/rails/issues/2582 (with testcase)kennyj2011-09-131-1/+17
| |
* | added test for db migrate:redoDeepak Prasanna2011-09-101-0/+25
| |
* | Merge pull request #2957 from waseem/migration_status_testsSantiago Pastorino2011-09-091-0/+24
|\ \ | | | | | | Tests for rake db:migrate:status.
| * | Tests for rake db:migrate:status.Waseem Ahmad2011-09-091-1/+25
| |/
* / move route inspecting to an object so that we can more easily test itAaron Patterson2011-09-091-95/+2
|/
* Warnings removed for "assert_match /" Please doArun Agrawal2011-09-041-3/+3
| | | | not add more.!
* Improve formatting of route to Rack application in rake routes.Hendy Tanata2011-07-171-0/+21
| | | | | | | | | | This route: match 'foo/:id' => RackApp, :id => /[A-Z]\d{5}/ is shown as: /foo/:id(.:format) RackApp {:id=>/[A-Z]\d{5}/}
* Better formatting of route requirements in rake:routes.Hendy Tanata2011-07-161-2/+65
| | | | | | | | | | Previously it was: {:controller=>"photos", :action=>"show", :id=>/[A-Z]\d{5}/} Now it becomes: photos#show {:id=>/[A-Z]\d{5}/}