Permalink
Browse files

testing: fix beacon and test/spec examples

  • Loading branch information...
sr committed Jul 26, 2009
1 parent 175492c commit ff35bfd7a2771d7724f2b802191e289a2e35b423
Showing with 8 additions and 0 deletions.
  1. +8 −0 testing.markdown
View
@@ -227,6 +227,10 @@ Testing with Bacon is similar to `test/unit` and RSpec:
describe 'The HelloWorld App' do
include Rack::Test::Methods
+ def app
+ Sinatra::Application
+ end
+
it "says hello" do
get '/'
last_response.should.be.ok
@@ -255,6 +259,10 @@ The `Rack::Test` module should be included within the context of the
describe 'The HelloWorld App' do
include Rack::Test::Methods
+ def app
+ Sinatra::Application
+ end
+
it "says hello" do
get '/'
last_response.should.be.ok

0 comments on commit ff35bfd

Please sign in to comment.