aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fix incorrect output from rails routes when using singular resources issue ↵Erick Reyna2016-11-182-3/+36
|/ / | | | | | | | | | | | | | | | | | | #26606 Rails routes (even rake routes in previous versions) output showed incorrect routes when an application use resource :controller, implying that edit_controller_path match with controller#show. The order of the output has changed to correct this. View #26606 for more information. Added a test case, change unit test in rake to expect the new output. Since the output of resource :controller is changing, the string spected of the railties/test/application/rake_test.rb test_rails_routes_with_controller_environment had to be modified.
* | Add `:skip_sprockets` to `Rails::PluginBuilder::PASSTHROUGH_OPTIONS`Tsukuru Tanimichi2016-11-141-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | `rails plugin new` with `--full` and `--skip-sprockets` options generates a dummy application that throws `NoMethodError`. ``` % rails plugin new my_engine -S --full --skip-gemspec % cd my_engine % bin/rails test rails aborted! NoMethodError: undefined method `assets' for #<Rails::Application::Configuration:0x007f83aa1e6100> ```
* | Add test for #25248Sean Griffin2016-11-121-0/+10
| |
* | Don't put db:migrate and db:setup in binfiles if activerecord is excludedBouke van der Bijl2016-11-011-0/+6
| |
* | Add more rubocop rules about whitespacesRafael Mendonça França2016-10-2916-41/+41
| |
* | remove assets config from `new_framework_defaults` if `--skip-sprockets` is trueyuuji.yaginuma2016-10-251-0/+3
| | | | | | | | If `sprockets` is not loaded, `Rails.application.config.assets` is not defined.
* | Prevent the test framework from being loaded in production modeAaron Patterson2016-10-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | The test framework should not be autoloaded in production mode. Before this commit, the testing railtie would extend AS::TestCase. This caused AS::TestCase to be preloaded regardless of the environment in which we were running. This commit just moves the code that adds line filtering support in to the test command where we actually execute the test runner. That allows us to maintain the line runner feature but only load the minimal amount of code we need.
* | don't create db directory when skip active_recordJosé Gomes Júnior2016-10-211-0/+1
|/
* Remove deprecated code in ssl middlewareRafael Mendonça França2016-10-101-2/+2
|
* Remove deprecated support to :text in renderRafael Mendonça França2016-10-1010-69/+69
|
* use `active_support/testing/autorun` in `bin/test` scriptyuuji.yaginuma2016-09-271-0/+6
| | | | | | | 29f0fbd5db643b885665e4a14c7de3bf6c0d9c96 has changed that always call `Minitest.autorun` in `active_support/testing/autorun`. Therefore, when used directly `Minitest.run`, tests are performed twice.
* Fix server command tests.Kasper Timm Hansen2016-09-251-1/+2
|
* Fix dbconsole tests.Kasper Timm Hansen2016-09-251-22/+55
|
* Fix console tests.Kasper Timm Hansen2016-09-251-6/+30
|
* Initial command structure.Kasper Timm Hansen2016-09-251-1/+1
|
* Merge pull request #26515 from grosser/grosser/after_runArthur Nogueira Neves2016-09-231-1/+33
|\ | | | | support minitest after_run
| * support minitest after_run for parity to regular minitestMichael Grosser2016-09-161-0/+18
| | | | | | | | see https://github.com/seattlerb/minitest/blob/f9605387e4af7d657921a83aaf0ae364f6d26a57/lib/minitest.rb#L51-L65
| * improve test coverageMichael Grosser2016-09-161-2/+16
| |
* | use rails command in restart task testyuuji.yaginuma2016-09-191-7/+7
| |
* | improve error message when include assertions failMichael Grosser2016-09-1613-50/+50
|/ | | | | | assert [1, 3].includes?(2) fails with unhelpful "Asserting failed" message assert_includes [1, 3], 2 fails with "Expected [1, 3] to include 2" which makes it easier to debug and more obvious what went wrong
* Merge pull request #26469 from y-yagi/remove_useless_optionRafael França2016-09-141-5/+0
|\ | | | | remove useless `gemfile` option
| * remove useless `gemfile` optionyuuji.yaginuma2016-09-121-5/+0
| | | | | | | | | | | | | | Rails application for test creates with `--skip-gemfile` option. https://github.com/rails/rails/blob/master/railties/test/isolation/abstract_unit.rb#L333 Therefore, regardless of the option, Gemfile is not created.
* | fix broken generators testyuuji.yaginuma2016-09-142-2/+2
|/ | | | Follow up to 92703a9ea5d8b96f30e0b706b801c9185ef14f0e
* use correct Gemfile in `bin/setup` testyuuji.yaginuma2016-09-111-0/+18
| | | | | | | Currently, `bin/setup` test uses Gemfile of Rails. But this Gemfile is not a file to be used in Rails application. Add a Gemfile to Rails application that is created for test, it has been modified to use the Gemfile.
* fixes remaining RuboCop issues [Vipul A M, Xavier Noria]Xavier Noria2016-09-011-8/+8
|
* Fix styleschneems2016-08-301-26/+26
|
* Address comment via @dhh, better option namingschneems2016-08-301-4/+4
|
* Thanks rubocopschneems2016-08-291-1/+1
|
* Favor `public_folder: true` over `public_*`schneems2016-08-291-25/+44
| | | | Adding all those `public_*` methods is a bit heavy handed, we can change the API to instead use `public_folder: true`. Change was pretty easy since it was already implemented that way.
* Fix formattingschneems2016-08-291-3/+3
|
* Add `public_*` helpers to all the `_tag` methods.schneems2016-08-291-9/+15
|
* Test `public_` methods.schneems2016-08-291-0/+72
|
* run `before_configuration` callbacks as soon as application constant ↵yuuji.yaginuma2016-08-191-0/+7
| | | | | | | | | | | | | inherits from Rails::Application Until Rails 4.1, `before_configuration` run as soon as the application constant inherits from `Rails::Application`. However, in d25fe31c40928712b5e08fe0afb567c3bc88eddf, it has been modified to run at instantiation process. This modify to `before_configuration` is run at same timing as to Rails 4.1. Fixes #19880
* Merge pull request #26157 from ↵Rafael França2016-08-161-0/+1
|\ | | | | | | | | y-yagi/remove_test_mailers_when_skipping_action-mailer remove "test/mailers" directory when skipping action-mailer
| * remove "test/mailers" directory when skipping action-maileryuuji.yaginuma2016-08-141-0/+1
| | | | | | | | Related to #26146
* | Merge pull request #26130 from yui-knk/drop_tableRafael França2016-08-161-1/+3
|\ \ | | | | | | Drop a temporary table before end of a test case
| * | Drop a temporary table before end of a test caseyui-knk2016-08-141-1/+3
| | |
* | | Add three new rubocop rulesRafael Mendonça França2016-08-1626-86/+86
| |/ |/| | | | | | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
* | Ensure app/mailers is removed when skipping action-mailerBrian Cardarella2016-08-121-0/+1
|/ | | | Closes #26145
* Integration test to prevent regression for the 5th timeAaron Patterson2016-08-111-0/+47
| | | | | | | | Fix unsafe query generation risk. Redo of CVE-2012-2660, CVE-2012-2694 and CVE-2013-0155 CVE-2016-6317
* add missing require rakeyuuji.yaginuma2016-08-111-0/+24
| | | | | In ff8035dfeed8c86594c32ef8e9204806e190cb58, require rake is deferred. Therefore, it is necessary to require rake even `Engine::CommandsTasks.
* code gardening: removes redundant selfsXavier Noria2016-08-081-1/+1
| | | | | | | | | A few have been left for aesthetic reasons, but have made a pass and removed most of them. Note that if the method `foo` returns an array, `foo << 1` is a regular push, nothing to do with assignments, so no self required.
* applies project convention for string literalsXavier Noria2016-08-071-1/+1
|
* Merge pull request #24260 from ↵Kasper Timm Hansen2016-08-071-4/+6
|\ | | | | | | | | y-yagi/show_error_message_when_error_raised_in_rails_runner show error message when error raised in rails runner
| * show error message when error raised in rails runneryuuji.yaginuma2016-08-031-4/+6
| |
* | Add `Style/EmptyLines` in `.rubocop.yml` and remove extra empty linesRyuta Kamizono2016-08-075-7/+0
| |
* | applies remaining conventions across the projectXavier Noria2016-08-067-9/+1
| |
* | normalizes indentation and whitespace across the projectXavier Noria2016-08-0617-231/+231
| |
* | remove redundant curlies from hash argumentsXavier Noria2016-08-066-20/+20
| |
* | modernizes hash syntax in railtiesXavier Noria2016-08-064-9/+9
| |