Gems_big

rack-test

All 19 versions

Version Release date
0.7.0 July 10, 2017
  • Major enhancements
  • Minor enhancements
    • Port to RSpec 3. (Murahashi [Matt] Kenichi #70, Antonio Terceiro #134)
    • Add Travis CI (Johannes Barre #108, Jun Aruga #161)
    • Don't append an ampersand when params are empty (sbilharz, #157)
    • Allow symbol access to cookies (Anorlondo448 #156)
    • README: Added Travis badge (Olivier Lacan, Per Lundberg #146)
    • Rack::Test::Utils#build_multipart: Allow passing a third parameter to force multipart (Koen Punt #142)
    • Allow better testing of cookies (Stephen Best #133)
    • make build_multipart work without mixing in Rack::Test::Utils (Aaron Patterson #131)
    • Add license to gemspec (Jordi Massaguer Pla #72, Anatol Pomozov #89, Anatol Pomozov #90, Johannes Barre #109, Mandaryn #115, Chris Marshall #120, Robert Reiz #126, Nic Benders #127, Nic Benders #130)
    • Feature/bulk pr for readme updates (Patrick Mulder #65, Troels Knak-Nielsen #74, Jeff Casimir #76)
    • Switch README format to Markdown (Dennis Sivia #176)
    • Convert History.txt to Markdown (Dennis Sivia #179)
    • Stop generating gemspec file. (Jun Aruga #181)
    • Fix errors at rake docs and whitespace. (Jun Aruga #183)
    • Ensure Rack::Test::UploadedFile closes its tempfile file descriptor on GC (Michael de Silva #180)
    • Change codeclimate URL correctly. (Jun Aruga #186)
  • Bug fixes
    • Initialize digest_username before using it. (Guo Xiang Tan #116, John Drago #124, Mike Perham #154)
    • Do not set Content-Type for DELETE requests (David Celis #132)
    • Adds support for empty arrays in params. (Cedric R??ck, Tim Masliuchenko #125)
    • Update README code example quotes to be consistent. (Dmitry Gritsay #112)
    • Update README not to recommend installing gem with sudo. (T.J. Schuck #87)
    • Set scheme when using ENV to enable SSL (Neil Ang #155)
    • Reuse request method and parameters on HTTP 307 redirect. (Martin Mauch #138)
0.6.3 January 09, 2015
  • Minor enhancements
    • Expose an env helper for persistently configuring the env as needed (Dar??o Javier Cravero #80)
    • Expose the tempfile of UploadedFile (Sytse Sijbrandij #67)
  • Bug fixes
    • Improve support for arrays of hashes in multipart forms (Murray Steele #69)
    • Improve test for query strings (Paul Grayson #66)
0.6.2 September 27, 2012
  • Minor enhancements
    • Support HTTP PATCH method (Marjan Krekoten' #33)
    • Preserve the exact query string when possible (Paul Grayson #63)
    • Add a #delete method to CookieJar (Paul Grayson #63)
  • Bug fixes
    • Fix HTTP Digest authentication when the URI has query params
    • Don't append default ports to HTTP_HOST (David Lee #57)
0.6.1 July 27, 2011
  • Bug fixes
    • Fix support for params with arrays in multipart forms (Joel Chippindale)
    • Add respond_to? to Rack::Test::UploadedFile to match method_missing (Josh Nichols)
    • Set the Referer header on requests issued by follow_redirect! (Ryan Bigg)
0.6.0 May 03, 2011
  • Bug fixes
    • Add support for HTTP OPTIONS verb (Paolo "Nusco" Perrotta)
    • Call #finish on MockResponses if it's available (Aaron Patterson)
    • Allow HTTP_HOST to be set via #header (Geoff Buesing)
0.5.7 January 01, 2011
  • Bug fixes
    • If no URI is present, include all cookies (Pratik Naik)
0.5.6 September 25, 2010
  • Bug fixes
    • Use parse_nested_query for parsing URI like Rack does (Eugene Bolshakov)
    • Don't depend on ActiveSupport extension to String (Bryan Helmkamp)
    • Do not overwrite HTTP_HOST if it is set (Krekoten' Marjan)
0.5.5 September 22, 2010
  • Bug fixes
    • Fix encoding of file uploads on Ruby 1.9 (Alan Kennedy)
    • Set env["HTTP_HOST"] when making requests (Istvan Hoka)
0.5.4 May 26, 2010
  • Bug fixes
    • Don't stomp on Content-Type's supplied via #header (Bryan Helmkamp)
    • Fixed build_multipart to allow for arrays of files (Louis Rose)
    • Don't raise an error if raw cookies contain a blank line (John Reilly)
    • Handle parameter names with brackets properly (Tanner Donovan)
0.5.3 November 27, 2009
  • Bug fixes
    • Fix cookie matching for subdomains (Marcin Kulik)
0.5.2 November 13, 2009
  • Bug fixes
    • Call close on response body after iteration, not before (Simon Rozet)
    • Add missing require for time in cookie_jar.rb (Jerry West)
0.5.1 October 27, 2009
  • Bug fixes
    • Escape cookie values (John Pignata)
    • Close the response body after each request, as per the Rack spec (Elomar Fran??a)
0.5.0 September 19, 2009
  • Bug fixes
    • Set HTTP_X_REQUESTED_WITH in the Rack env when a request is made with :xhr => true (Ben Sales)
    • Set headers in the Rack env in HTTP_USER_AGENT form
    • Rack::Test now generates no Ruby warnings
0.4.2 September 01, 2009
  • Minor enhancements
    • Merge in rack/master's build_multipart method which covers additional cases
    • Accept raw :params string input and merge it with the query string
    • Stringify and upcase request method (e.g. :post => "POST") (Josh Peek)
  • Bug fixes
    • Properly convert hashes with nil values (e.g. :foo => nil becomes simply "foo", not "foo=")
    • Prepend a slash to the URI path if it doesn't start with one (Josh Peek)
    • Requiring Rack-Test never modifies the Ruby load path anymore (Josh Peek)
    • Fixed using multiple cookies in a string on Ruby 1.8 (Tuomas Kareinen and Hermanni Hyyti??l??)
0.4.1 August 06, 2009
  • Minor enhancements
    • Support initializing a Rack::Test::Session with an app in addition to a Rack::MockSession
    • Allow CONTENT_TYPE to be specified in the env and not overwritten when sending a POST or PUT
0.4.0 June 25, 2009
  • Minor enhancements
    • Expose hook for building Rack::MockSessions for frameworks that need to configure them before use
    • Support passing in arrays of raw cookies in addition to a newline separated string
    • Support after_request callbacks in MockSession for things like running background jobs
    • Allow multiple named sessions using with_session
    • Initialize Rack::Test::Sessions with Rack::MockSessions instead of apps. This change should help integration with other Ruby web frameworks (like Merb).
    • Support sending bodies for PUT requests (Larry Diehl)
0.3.0 May 17, 2009
  • Major enhancements
    • Ruby 1.9 compatible (Simon Rozet, Michael Fellinger)
  • Minor enhancements
    • Add CookieJar#[] and CookieJar#[]= methods
    • Make the default host configurable
    • Use Rack::Lint and fix errors (Simon Rozet)
    • Extract Rack::MockSession from Rack::Test::Session to handle tracking the last request and response and the cookie jar
    • Add #set_cookie and #clear_cookies methods
    • Rename #authorize to #basic_authorize (#authorize remains as an alias) (Simon Rozet)
0.2.0 April 26, 2009

Because #last_response is now a MockResponse instead of a Rack::Response, #last_response.body now returns a string instead of an array.

  • Major enhancements
    • Support multipart requests via the UploadedFile class (thanks, Rails)
  • Minor enhancements
    • Updated for Rack 1.0
    • Don't require rubygems (See http://gist.github.com/54177)
    • Support HTTP Digest authentication with the #digest_authorize method
    • #last_response returns a MockResponse instead of a Response (Michael Fellinger)
0.1.0 March 04, 2009
  • 1 major enhancement
    • Birthday!