rtomayko-sinatra 0.8.10 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +0,0 @@
1
- require 'bacon'
2
- require 'sinatra/test'
3
-
4
- Sinatra::Default.set(
5
- :env => :test,
6
- :run => false,
7
- :raise_errors => true,
8
- :logging => false
9
- )
10
-
11
- module Sinatra::Test
12
- def should
13
- @response.should
14
- end
15
- end
16
-
17
- Bacon::Context.send(:include, Sinatra::Test)
data/test/helper.rb DELETED
@@ -1,25 +0,0 @@
1
- begin
2
- require 'test/spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- require 'test/spec'
6
- end
7
-
8
- $:.unshift File.dirname(File.dirname(__FILE__)) + '/lib'
9
- require 'sinatra/base'
10
- require 'sinatra/test'
11
- require 'sinatra/test/spec'
12
-
13
- module Sinatra::Test
14
- # Sets up a Sinatra::Base subclass defined with the block
15
- # given. Used in setup or individual spec methods to establish
16
- # the application.
17
- def mock_app(base=Sinatra::Base, &block)
18
- @app = Sinatra.new(base, &block)
19
- end
20
- end
21
-
22
- class Sinatra::Base
23
- # Allow assertions in request context
24
- include Test::Unit::Assertions
25
- end