Skip to content

Commit

Permalink
Fix for test/unit and test/spec docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrosby committed Sep 25, 2008
1 parent e75f4b3 commit 7cfe04a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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!'
Expand Down

0 comments on commit 7cfe04a

Please sign in to comment.