Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Mar 17, 2009
  1. Prep 0.4.3 release

Commits on Mar 8, 2009
  1. History

  2. @sr

    Sinatra now provides sensible options for testing

    sr committed
    In the lastest release, 0.9.1:
    * Set sensible defaults on Default for test env [1]
    * Set :environment to :test in TestHarness
    * Set :environment to :test when Sinatra::Test is included
    [1] Only Sinatra::Default provides special options for testing. If you subclass
        Sinatra::Base, you'll have to set them yourself.
Commits on Mar 1, 2009
  1. @lukemelia

    When faced with a label with no for attribute, that contains a hidden…

    lukemelia committed
    … field and another field, as can be the case in Rails 2.3's checkbox view, webrat now locates the non-hidden field.
  2. @lukemelia
Commits on Feb 28, 2009
  1. @sr

    Fix following of absolute redirect URL in Sinatra

    sr committed
    What's going on when the app redirects to an absolute URL?
    * Sinatra relies on Rack::MockSession which sets SERVER_NAME to
      "" [1] on request it makes. However, Webrat expects
      it to be ""
    * In MyClassyApp, the redirect URL is made out of Rack::Request#url [2]
      which uses  SERVER_NAME, which is set to "" by Rack::MockSession.
      As a result, Webrat see it as an external redirect and don't follow it.
    * SERVER_NAME is stricly equivalent to HTTP_HOST [3]
    * This could have been fixed in Webrat::Session too. I'am not sure
      that it won't affect other frameworks so I left it intact.
          def request_page(url, http_method, data) #:nodoc:
             h = headers
             h['HTTP_REFERER'] = @current_url if @current_url
      +      h['HTTP_HOST']    = '';
  2. @sr

    Support for "modular" Sinatra app style

    sr committed
    Since Sinatra 0.9, apps can be ancapsulated in a class ("modular" style)
    or be on the top level, just like before ("classic" style)
  3. History

  4. Merge branch 'master' into atmos

Commits on Feb 24, 2009
  1. Prep for 0.4.2 release

  2. Fix warning caused by Nokogiri deprecating CSS::Parser.parse (Aaron P…

    …atterson) [#176 state:resolved]
  3. Refactoring XPath manipulation

  4. Extracting xpath_escape method

Commits on Feb 23, 2009
  1. @atmos
Commits on Feb 18, 2009
  1. @atmos
  2. @atmos
Commits on Feb 16, 2009
  1. Adding :count option to have_tag

  2. Get quoting working for content

Commits on Feb 15, 2009
  1. Whitespace

  2. @atmos
  3. @atmos
  4. @atmos
  5. @atmos
Commits on Feb 14, 2009
  1. @atmos
Something went wrong with that request. Please try again.