Permalink
Browse files

Update rspec tests for Sinatra 0.9.1

  • Loading branch information...
1 parent ba274d2 commit da72d9470b2a964ad4a2cb851240bd00ec3f58d6 @zapnap committed Mar 9, 2009
Showing with 5 additions and 1 deletion.
  1. +2 −0 spec/application_spec.rb
  2. +3 −1 spec/spec_helper.rb
View
2 spec/application_spec.rb
@@ -1,6 +1,8 @@
require "#{File.dirname(__FILE__)}/spec_helper"
describe 'main application' do
+ include Sinatra::Test
+
specify 'should show the default index page' do
get '/'
@response.should be_ok
View
4 spec/spec_helper.rb
@@ -1,6 +1,8 @@
require 'rubygems'
require 'sinatra'
-require 'sinatra/test/rspec'
+require 'spec'
+require 'spec/interop/test'
+require 'sinatra/test'
# set test environment
set :environment, :test

0 comments on commit da72d94

Please sign in to comment.