1. 21 2月, 2018 1 次提交
  2. 18 2月, 2018 6 次提交
  3. 17 2月, 2018 2 次提交
  4. 16 2月, 2018 2 次提交
    • E
      Add test parallelization to Rails · 26821d9b
      eileencodes 提交于
      Provides both a forked process and threaded parallelization options. To
      use add `parallelize` to your test suite.
      
      Takes a `workers` argument that controls how many times the process
      is forked. For each process a new database will be created suffixed
      with the worker number; test-database-0 and test-database-1
      respectively.
      
      If `ENV["PARALLEL_WORKERS"]` is set the workers argument will be ignored
      and the environment variable will be used instead. This is useful for CI
      environments, or other environments where you may need more workers than
      you do for local testing.
      
      If the number of workers is set to `1` or fewer, the tests will not be
      parallelized.
      
      The default parallelization method is to fork processes. If you'd like to
      use threads instead you can pass `with: :threads` to the `parallelize`
      method. Note the threaded parallelization does not create multiple
      database and will not work with system tests at this time.
      
      parallelize(workers: 2, with: :threads)
      
      The threaded parallelization uses Minitest's parallel exector directly.
      The processes paralleliztion uses a Ruby Drb server.
      
      For parallelization via threads a setup hook and cleanup hook are
      provided.
      
      ```
      class ActiveSupport::TestCase
        parallelize_setup do |worker|
          # setup databases
        end
      
        parallelize_teardown do |worker|
          # cleanup database
        end
      
        parallelize(workers: 2)
      end
      ```
      
      [Eileen M. Uchitelle, Aaron Patterson]
      26821d9b
    • J
      ActiveStorage file cleanup in Integration Tests · b6bbedf1
      Jeremy Prevost 提交于
      Documents ActiveStorage file cleanup in Integration Tests which is
      similar but slightly different than the existing docs for System Tests.
      b6bbedf1
  5. 15 2月, 2018 6 次提交
  6. 13 2月, 2018 1 次提交
  7. 12 2月, 2018 1 次提交
  8. 10 2月, 2018 1 次提交
  9. 08 2月, 2018 2 次提交
  10. 04 2月, 2018 1 次提交
  11. 31 1月, 2018 4 次提交
  12. 29 1月, 2018 2 次提交
  13. 28 1月, 2018 2 次提交
  14. 26 1月, 2018 1 次提交
  15. 24 1月, 2018 2 次提交
    • R
      tweaks for #31704 [ci skip] · e08e7453
      Ryuta Kamizono 提交于
      * rDBMS -> RDBMS. There is only place using rDBMS.
      * a SQL -> an SQL
      e08e7453
    • L
      Clarification for noobs. (#31704) · 97e93313
      loothunter1 提交于
      * Update active_record_basics.md
      
      I made a bit of clarification for people, who are not familiar with SQL (pretty much like me). However, I don't know what tutorial for MySQL is better, so I haven't inserted a link yet.
      
      * [ci skip] For those who new to GitHub
      
      Added more instructions for contributing guides. Without them, it was somewhat confusing for me to find what I should actually do.
      
      * Update active_record_basics.md
      
      Fixed grammar and text wrapping as requested.
      
      * Update contributing_to_ruby_on_rails.md
      
      Revised instructions.
      
      * Update contributing_to_ruby_on_rails.md
      
      Typos
      
      * Update active_record_basics.md
      
      * [ci skip] Update active_record_basics
      
      Added a few links to SQL tutorials found on the net.
      Also, changed MySQL to SQL (or one of its extensions) - I think that it's a good compromise.
      
      * [ci skip] I think now it's more clear what to do.
      
      * [ci skip] Fixed strings
      
      [Rafael Mendonça França + loothunter1]
      97e93313
  16. 23 1月, 2018 2 次提交
  17. 22 1月, 2018 1 次提交
  18. 19 1月, 2018 1 次提交
  19. 18 1月, 2018 1 次提交
  20. 17 1月, 2018 1 次提交
    • B
      Update "Layouts and Rendering in Rails" guide [ci skip] · 264f4a6b
      bogdanvlviv 提交于
        - Remove mention about `ActionView::TemplateHandlers` since this
          module was removed by c1304098.
          Change word `subclasses` to `nested classes`.
          See c7408a0e
        - Remove useless sentence "Beginning with Rails 2, the standard extensions
          are `.erb` for ERB (HTML with embedded Ruby), and `.builder` for Builder (XML generator)."
      264f4a6b