Permalink
Commits on Mar 17, 2009
  1. Prep 0.4.3 release

    committed Mar 17, 2009
Commits on Mar 8, 2009
  1. History

    committed Mar 8, 2009
  2. Sinatra now provides sensible options for testing

    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
    sr committed Mar 8, 2009
Commits on Mar 1, 2009
  1. When faced with a label with no for attribute, that contains a hidden…

    … field and another field, as can be the case in Rails 2.3's checkbox view, webrat now locates the non-hidden field.
    lukemelia committed Mar 1, 2009
Commits on Feb 28, 2009
  1. Fix following of absolute redirect URL in Sinatra

    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
    sr committed Feb 22, 2009
  2. Support for "modular" Sinatra app style

    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
    sr committed Feb 22, 2009
  3. History

    committed Feb 28, 2009
  4. Merge branch 'master' into atmos

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

    committed Feb 24, 2009
  2. Fix warning caused by Nokogiri deprecating CSS::Parser.parse (Aaron P…

    …atterson) [#176 state:resolved]
    committed Feb 24, 2009
  3. Refactoring XPath manipulation

    committed Feb 24, 2009
  4. Extracting xpath_escape method

    committed Feb 24, 2009
Commits on Feb 23, 2009
Commits on Feb 18, 2009
Commits on Feb 16, 2009
  1. Adding :count option to have_tag

    committed Feb 16, 2009
  2. Get quoting working for content

    committed Feb 16, 2009
Commits on Feb 15, 2009
  1. Whitespace

    committed Feb 15, 2009
  2. clean up constant definitions for rails and fix merb port fubar on se…

    …lenium appserver stop
    atmos committed Feb 15, 2009
Commits on Feb 14, 2009