Permalink
Browse files

Merge pull request #24 from aaandre/patch-1

Update the minitest example to include modular Sinatra apps
  • Loading branch information...
2 parents 0680c15 + 3da06ee commit 7d1971f0f942a1f60dfb373ecfb17b20f4201d29 @steveklabnik steveklabnik committed Jan 11, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 testing/minitest.md
View
@@ -43,6 +43,16 @@ In your test files you only have to require that helper:
end
end
+If your app was defined using the [modular style](http://www.sinatrarb.com/intro.html#Sinatra::Base%20-%20Middleware,%20Libraries,%20and%20Modular%20Apps), use
+
+ def app
+ MyApp # <- your application class name
+ end
+
+instead of
+
+ def app() Sinatra::Application end
+
### Specs and Benchmarks with Minitest
**Specs**

0 comments on commit 7d1971f

Please sign in to comment.