1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Fix for test/unit and test/spec docs

This commit is contained in:
Jon Crosby 2008-09-24 18:48:33 -07:00
parent e75f4b3f72
commit 7cfe04a905

View file

@ -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!'