1. 07 12月, 2015 2 次提交
    • E
      Stop violating law of demeter in response cookie_jar · 8350925b
      eileencodes 提交于
      This adds a new method to request and response so we don't need to
      violate the law of demeter.
      
      We are changing `Request` and `Response` so that they always have a
      `cookie_jar`
      
      This is a continuation on work to combine integration and controller
      test code bases in Rails.
      8350925b
    • E
      Push `before_sending` to super class · 492b1344
      eileencodes 提交于
      We want to get rid of the `Live::Response` so we are consolidating methods
      from `Live::Response` and `Response` by merging them together.
      
      This adds an `#empty` method to the request so we don't need to
      hard-code the empty array each time we call an empty
      `ActionDispatch::Request`.
      
      The work here is a continuation on combining controller and integration
      test code bases into one.
      492b1344
  2. 06 12月, 2015 1 次提交
  3. 05 12月, 2015 1 次提交
    • W
      Test against the real value of tld_length unless explicitly set · e8bfaa58
      Will Jessop 提交于
      There were two places where the tld_length default
      was hard-coded to 1, both overriding the real default
      value of ActionDispatch::Http::URL.tld_length in this
      set of tests.
      
      This commit removes both of those, relying on the
      actual value of ActionDispatch::Http::URL.tld_length,
      unless it's specifically overridden.
      e8bfaa58
  4. 04 12月, 2015 1 次提交
  5. 28 11月, 2015 2 次提交
  6. 26 11月, 2015 1 次提交
  7. 22 11月, 2015 2 次提交
  8. 21 11月, 2015 1 次提交
  9. 20 11月, 2015 1 次提交
  10. 15 11月, 2015 2 次提交
  11. 13 11月, 2015 1 次提交
  12. 12 11月, 2015 1 次提交
    • C
      Show middleware classes on /rails/info/properties · 6c75bcbb
      claudiob 提交于
      Closes #21230 by following the indication of @rafaelfranca:
      
      > I think the output change would be simpler.
      > What is really important to show is the class of the middleware, so we should change the output to show that.
      6c75bcbb
  13. 11 11月, 2015 1 次提交
  14. 05 11月, 2015 3 次提交
  15. 04 11月, 2015 1 次提交
    • T
      Add text template for source code · 08689a2d
      Tijmen Brommet 提交于
      When a request is made with AJAX and an error occurs, Rails will render
      a text-template for the exception instead of the HTML error page
      (#11960).
      
      The `.text.erb` variant of the `_source` template is currently missing,
      causing HTML to be rendered in the response. This commit adds the text
      template.
      
      To keep the page scannable we only only show the first three source
      extracts.
      
      Related to #14745.
      
      Before:
      
      ```
      ~/testing-exceptions  ᐅ curl 'http://localhost:3000/' -H
      'X-Requested-With: XMLHttpRequest'
      RuntimeError in PostsController#index
      
          <div class="source " id="frame-source-0">
            <div class="info">
              Extracted source (around line <strong>#3</strong>):
            </div>
            <div class="data">
              <table cellpadding="0" cellspacing="0" class="lines">
                <tr>
      ```
      
      After:
      
      ```
      ~/testing-exceptions  ᐅ curl 'http://localhost:3000/' -H
      'X-Requested-With: XMLHttpRequest'
      RuntimeError in PostsController#index
      
      Extracted source (around line #3):
      
      *3     raise
      ```
      08689a2d
  16. 03 11月, 2015 2 次提交
  17. 02 11月, 2015 1 次提交
  18. 30 10月, 2015 6 次提交
  19. 28 10月, 2015 3 次提交
  20. 27 10月, 2015 1 次提交
  21. 25 10月, 2015 2 次提交
  22. 24 10月, 2015 1 次提交
  23. 23 10月, 2015 2 次提交
  24. 22 10月, 2015 1 次提交