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:
parent
e75f4b3f72
commit
7cfe04a905
1 changed files with 8 additions and 4 deletions
12
README.rdoc
12
README.rdoc
|
@ -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!'
|
||||
|
|
Loading…
Reference in a new issue