For what it&#39;s worth, here&#39;s how I had to hack Webrat to get my Sinatra 0.9.1 app working properly: <a href="http://gist.github.com/73735">http://gist.github.com/73735</a>.<br><br><div class="gmail_quote">On Tue, Mar 3, 2009 at 11:39 PM, Andrew Premdas <span dir="ltr">&lt;<a href="mailto:apremdas@gmail.com">apremdas@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Have created sample sinatra cucumber app as suggested on wiki. Tried both env.rb configurations from there and aslaks git repo. With this combination of gems I get the following error doing basic cuc tests<br>
<br> When I visit &#39;/foo&#39;                                       # features/step_definitions/general.rb:1<br>
      PATH_INFO must start with / (Rack::Lint::LintError)<br>      /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:16:in `assert&#39;<br>      /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:178:in `check_env&#39;<br>

      /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:39:in `_call&#39;<br>      /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:33:in `call&#39;<br>      /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/mock.rb:70:in `request&#39;<br>

      /Library/Ruby/Gems/1.8/gems/sinatra-0.9.1/lib/sinatra/test.rb:41:in `make_request&#39;<br>      /Library/Ruby/Gems/1.8/gems/sinatra-0.9.1/lib/sinatra/test.rb:44:in `orig_get&#39;<br>      /Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/sinatra.rb:26:in `__send__&#39;<br>

      /Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/sinatra.rb:26:in `get&#39;<br>      /Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/core/session.rb:104:in `send&#39;<br>      /Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/core/session.rb:104:in `request_page&#39;<br>

      /Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/core/session.rb:205:in `visit&#39;<br>      ./features/step_definitions/general.rb:3:in `When /^I visit (.*)$/&#39;<br>      features/basic.feature:17:in `When I visit &#39;/foo&#39;&#39;<br>

<br><br>Afraid I can&#39;t expand on this as I can&#39;t getting debugging working with cuc and sinatra.<br><br>All best<br><font color="#888888"><br>Andrew<br>
</font><br>_______________________________________________<br>
rspec-users mailing list<br>
<a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/rspec-users" target="_blank">http://rubyforge.org/mailman/listinfo/rspec-users</a><br></blockquote></div><br>