<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Bryan Helmkamp - Rack::Test released: Simply test any Rack-compatible app Comments</title>
  <id>tag:www.brynary.com,2009:/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps/comments</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
  <updated>2009-05-16T01:43:56Z</updated>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Dan Pickett</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1155</id>
    <published>2009-05-16T01:43:56Z</published>
    <updated>2009-05-16T01:43:56Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Dan Pickett</title>
<content type="html">&lt;p&gt;This gem is awesome! I was relying on the Rails stack to get some of my acceptance tests working. I now have it completely decoupled.&lt;/p&gt;


	&lt;p&gt;Thanks so much for putting it together!&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Yuumi Yoshida</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1145</id>
    <published>2009-04-27T02:13:20Z</published>
    <updated>2009-04-27T02:13:20Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Yuumi Yoshida</title>
<content type="html">&lt;p&gt;Thanks!&lt;/p&gt;


	&lt;p&gt;I can wrote RSpec code for Rails Metal :-)&lt;/p&gt;


	&lt;p&gt;http://d.hatena.ne.jp/yuum3/20090427/1240796189 (Japanese)&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Alex Chaffee</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1127</id>
    <published>2009-03-24T01:08:12Z</published>
    <updated>2009-03-24T01:08:12Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Alex Chaffee</title>
<content type="html">&lt;p&gt;Great work!&lt;/p&gt;


	&lt;p&gt;A few suggestions:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Rename Rack::Test::Session to Rack::Test::Conversation to avoid confusion with the concept of cookie-based rack sessions&lt;/li&gt;
	&lt;/ul&gt;


	&lt;ul&gt;
	&lt;li&gt;Once you&#8217;ve done that, provide access to rack sessions via&lt;/li&gt;
	&lt;/ul&gt;


&lt;pre&gt;
  def session
    last_request.env['rack.session']
  end
&lt;/pre&gt;

	&lt;ul&gt;
	&lt;li&gt;Rename &#8220;last_request&#8221; and &#8220;last_response&#8221; to &#8220;request&#8221; and &#8220;response&#8221;&#8212;the &#8220;last&#8221; is redundant since there&#8217;s usually no other requests or responses that it could be.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;You can easily overload the existing &#8220;request&#8221; method like this:&lt;/p&gt;


&lt;pre&gt;
    def request(*args)
      args.empty? ? last_request : rack_test_session.request(*args)
    end
&lt;/pre&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Arnaud Meuret</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1125</id>
    <published>2009-03-13T20:01:44Z</published>
    <updated>2009-03-13T20:01:44Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Arnaud Meuret</title>
<content type="html">&lt;p&gt;Great news. As a reader of your beta book which I strongly recommend I can only ask how this integrates with Webrat and if it will bring it for free with all rack-based frameworks, like Ramaze for instance ?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Bob Aman</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1122</id>
    <published>2009-03-10T17:34:39Z</published>
    <updated>2009-03-10T17:34:39Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Bob Aman</title>
<content type="html">&lt;p&gt;@Pelle&lt;/p&gt;


	&lt;p&gt;Oh, nice, didn&#8217;t actually look at the code, just what was in the post.  My bad.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>nap</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1121</id>
    <published>2009-03-10T15:41:29Z</published>
    <updated>2009-03-10T15:41:29Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by nap</title>
<content type="html">&lt;p&gt;Exactly what I needed. Thanks. And yep, works nicely with RSpec.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Pelle</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1119</id>
    <published>2009-03-09T19:14:58Z</published>
    <updated>2009-03-09T19:14:58Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Pelle</title>
<content type="html">&lt;p&gt;Wow this looks immediately useful in so many ways.&lt;/p&gt;


	&lt;p&gt;@Bpb Aman, it is just a module that you include. It works equally well with RSpec as far as I can see.&lt;/p&gt;


	&lt;p&gt;http://github.com/brynary/rack-test/blob/f79784993ca4c6ff7e0fa4aaca36b47881af2d62/spec/rack/test_spec.rb&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Bob Aman</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1118</id>
    <published>2009-03-09T18:14:04Z</published>
    <updated>2009-03-09T18:14:04Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Bob Aman</title>
<content type="html">&lt;p&gt;Very, very cool.  Anyone feel like doing the equivalent for RSpec?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Ryan Sobol</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1116</id>
    <published>2009-03-09T07:23:10Z</published>
    <updated>2009-03-09T07:23:10Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Ryan Sobol</title>
<content type="html">&lt;p&gt;Dyno-mite!  #last_request and #last_response look handy.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Avdi </name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1115</id>
    <published>2009-03-05T15:39:46Z</published>
    <updated>2009-03-05T15:39:46Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Avdi </title>
<content type="html">&lt;p&gt;This looks very useful!&lt;/p&gt;


	&lt;p&gt;Can you briefly sum up how this differs from the Rack support built into recent Webrat versions?&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>bryanl</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1114</id>
    <published>2009-03-05T15:22:51Z</published>
    <updated>2009-03-05T15:22:51Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by bryanl</title>
<content type="html">&lt;p&gt;Bryan&#8230; this looks very cool.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Dr Nic</name>
    </author>
    <id>tag:www.brynary.com,2009-03-05:1112:1113</id>
    <published>2009-03-05T09:00:41Z</published>
    <updated>2009-03-05T09:00:41Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2009/3/5/rack-test-released-a-simple-testing-api-for-rack-based-frameworks-and-apps" rel="alternate" type="text/html"/>
    <title>Comment on 'Rack::Test released: Simply test any Rack-compatible app' by Dr Nic</title>
<content type="html">&lt;p&gt;This is wonderful news; awesome.&lt;/p&gt;</content>  </entry>
</feed>
