Permalink
Browse files

Fix mocha puking all over itself under 1.9

  • Loading branch information...
rtomayko committed May 18, 2009
1 parent bd11d9c commit c4843a080358440d1b75306b8345fac1d4400532
Showing with 3 additions and 0 deletions.
  1. +3 −0 compat/helper.rb
View
@@ -24,6 +24,9 @@ module Sinatra::Test
class Test::Unit::TestCase
include Sinatra::Test
+
+ PASSTHROUGH_EXCEPTIONS = [] unless const_defined?(:PASSTHROUGH_EXCEPTIONS)
+
def setup
@app = lambda { |env| Sinatra::Application.call(env) }
end

0 comments on commit c4843a0

Please sign in to comment.