Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: twitter/finatra
...
head fork: twitter/finatra
  • 1 commit
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jun 08, 2012
Christopher Burnett twoism wip 7d2802f
3  .gitignore
View
@@ -0,0 +1,3 @@
+target/
+logs
+
2  pom.xml
View
@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.posterous</groupId>
<artifactId>finatra</artifactId>
- <version>4.1.3</version>
+ <version>4.1.4-SNAPSHOT</version>
<name>${project.artifactId}</name>
<description>Sinatra clone on top of finagle-http</description>
<inceptionYear>2012</inceptionYear>
14 src/main/scala/com/posterous/finatra/FinatraSpec.scala
View
@@ -0,0 +1,14 @@
+package com.posterous.finatra
+
+import com.capotej.finatra_core.{AbstractFinatraSpec, FinatraRequest, FinatraController}
+import com.twitter.util.Future
+import org.jboss.netty.handler.codec.http.HttpResponse
+
+abstract class FinatraSpec extends AbstractFinatraSpec {
+ def response = lastResponse.asInstanceOf[Future[HttpResponse]]
+
+ override def buildRequest(method:String, path:String, params:Map[String,String]=Map(), headers:Map[String,String]=Map()) {
+ val request = new FinatraRequest(method=method,path=path,params=params,headers=headers)
+ lastResponse = app.dispatch(request).asInstanceOf[Future[HttpResponse]].get
+ }
+}

No commit comments for this range

Something went wrong with that request. Please try again.