<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 29 Jul 2007, at 12:54, Chris McGrath wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="3" style="font: 11.0px Monaco">Stories are good, code is better :) I think having some high level <SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="3" style="font: 11.0px Monaco">statements about what merb will and will not do/provide for plugins <SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="3" style="font: 11.0px Monaco">and testing frameworks agreed would be a good start and stories would <SPAN class="Apple-converted-space"> </SPAN></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Monaco" size="3" style="font: 11.0px Monaco">be one way of getting to them.</FONT></P> </BLOCKQUOTE></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Replying to my own mail :)</DIV><BR><DIV>I've had a look at the rspec_on_rails plugin in mrblog (is this the right place?) and test_spec_on_rails from it's repo. My initial impressions are there are several things merb should do for a test harness:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>1. Load the test database</DIV><DIV>2. Load the app files</DIV><DIV>3. Provide a FakeRequest </DIV><DIV>4. Provide MultiPart functionality</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>This seems to be the common stuff between the two plugins at the moment.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>1 &amp; 2 are concerned with merb initialization and i'm unsure what the best way of handling this is.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>re 3 &amp; 4. I called the FakeRequest MockRequest yesterday, this is a bad name as it's not a mock :). I'd like to add in a Merb::Test namespace and have Merb::Test::FakeRequest and Merb::Test::MultiPart for the plugins to use.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Chris</DIV></BODY></HTML>