Permalink
Browse files

Fix for test/unit and test/spec docs

  • Loading branch information...
1 parent e75f4b3 commit 7cfe04a905aea9cfabaf9b6fc7cda6aa90d95841 @jcrosby jcrosby committed Sep 25, 2008
Showing with 8 additions and 4 deletions.
  1. +8 −4 README.rdoc
View
@@ -376,8 +376,10 @@ typically don't have to +use+ them explicitly.
=== Test/Unit
- require 'my_sinatra_app'
+ require 'rubygems'
+ require 'sinatra'
require 'sinatra/test/unit'
+ require 'my_sinatra_app'
class MyAppTest < Test::Unit::TestCase
@@ -397,12 +399,14 @@ typically don't have to +use+ them explicitly.
=== Specs
- require 'my_sinatra_app'
+ require 'rubygems'
+ require 'sinatra'
require 'sinatra/test/spec'
+ require 'my_sinatra_app'
- context 'My app'
+ describe 'My app' do
- should "show a default page" do
+ it "should show a default page" do
get_it '/'
should.be.ok
body.should.equal 'My Default Page!'

0 comments on commit 7cfe04a

Please sign in to comment.