For what it's worth, here'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"><<a href="mailto:apremdas@gmail.com">apremdas@gmail.com</a>></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 '/foo' # 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'<br> /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:178:in `check_env'<br>
/Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:39:in `_call'<br> /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/lint.rb:33:in `call'<br> /Library/Ruby/Gems/1.8/gems/rack-0.9.1/lib/rack/mock.rb:70:in `request'<br>
/Library/Ruby/Gems/1.8/gems/sinatra-0.9.1/lib/sinatra/test.rb:41:in `make_request'<br> /Library/Ruby/Gems/1.8/gems/sinatra-0.9.1/lib/sinatra/test.rb:44:in `orig_get'<br> /Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/sinatra.rb:26:in `__send__'<br>
/Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/sinatra.rb:26:in `get'<br> /Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/core/session.rb:104:in `send'<br> /Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/core/session.rb:104:in `request_page'<br>
/Library/Ruby/Gems/1.8/gems/webrat-0.4.2/lib/webrat/core/session.rb:205:in `visit'<br> ./features/step_definitions/general.rb:3:in `When /^I visit (.*)$/'<br> features/basic.feature:17:in `When I visit '/foo''<br>
<br><br>Afraid I can't expand on this as I can'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>