Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Mar 17, 2009
  1. @brynary

    Prep 0.4.3 release

    brynary authored
Commits on Mar 8, 2009
  1. @brynary

    History

    brynary authored
  2. @brynary
  3. @sr

    Sinatra now provides sensible options for testing

    sr authored
    In the lastest release, 0.9.1:
    
    * Set sensible defaults on Default for test env [1]
      http://github.com/sinatra/sinatra/commit/5a33a9586f6d3aa959ee7b3f4f7f0831476dcaa5
    
    * Set :environment to :test in TestHarness
      http://github.com/sinatra/sinatra/commit/9af37724e0fa5413c9a089024526ace6f82b7ab9
    
    * Set :environment to :test when Sinatra::Test is included
      http://github.com/sinatra/sinatra/commit/93b19a34927a21880523d3301b51d1dc2aad6538
    
    [1] Only Sinatra::Default provides special options for testing. If you subclass
        Sinatra::Base, you'll have to set them yourself.
    
    foo
  4. @brynary
Commits on Mar 1, 2009
  1. @lukemelia

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

    lukemelia authored
    … 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

    Fix for #161 When using Rails 2.3 it uses Rack::Utils to parse params

    Matthew Ford authored lukemelia committed
Commits on Feb 28, 2009
  1. @sr

    Fix following of absolute redirect URL in Sinatra

    sr authored
    What's going on when the app redirects to an absolute URL?
    
    * Sinatra relies on Rack::MockSession which sets SERVER_NAME to
      "example.org" [1] on request it makes. However, Webrat expects
      it to be "www.example.com"
    
    * In MyClassyApp, the redirect URL is made out of Rack::Request#url [2]
      which uses  SERVER_NAME, which is set to "example.org" by Rack::MockSession.
      As a result, Webrat see it as an external redirect and don't follow it.
    
    NOTE:
    
    * 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']    = 'www.example.com';
    
    [1] http://github.com/rack/rack/blob/5c00dd698edb953b4bee432fa12a20ba69a067c1/lib/rack/mock.rb#L79
    [2] http://github.com/rack/rack/blob/5c00dd698edb953b4bee432fa12a20ba69a067c1/lib/rack/request.rb#L201
    [3] http://github.com/rack/rack/blob/5c00dd698edb953b4bee432fa12a20ba69a067c1/lib/rack/request.rb#L72
  2. @sr

    Support for "modular" Sinatra app style

    sr authored
    Since Sinatra 0.9, apps can be ancapsulated in a class ("modular" style)
    or be on the top level, just like before ("classic" style)
    
    * http://wiki.github.com/brynary/webrat/sinatra
    * http://www.sinatrarb.com/extensions.html
  3. @brynary

    History

    brynary authored
  4. @brynary
Commits on Feb 24, 2009
  1. @brynary

    Prep for 0.4.2 release

    brynary authored
  2. @brynary

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

    brynary authored
    …atterson) [#176 state:resolved]
  3. @brynary
  4. @brynary
  5. @brynary

    Refactoring XPath manipulation

    brynary authored
  6. @brynary
  7. @brynary
  8. @brynary

    Extracting xpath_escape method

    brynary authored
  9. @brynary
  10. @brynary
  11. @brynary
Commits on Feb 23, 2009
  1. @atmos
  2. @brynary
Commits on Feb 18, 2009
  1. @atmos
  2. @atmos
Commits on Feb 16, 2009
  1. @brynary
  2. @brynary
  3. @brynary
Commits on Feb 15, 2009
  1. @brynary

    Whitespace

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