Permalink
Browse files

set :environment to :test in TestHarness

  • Loading branch information...
1 parent c2940f6 commit 9af37724e0fa5413c9a089024526ace6f82b7ab9 @bmizerany bmizerany committed Mar 2, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sinatra/test.rb
View
1 lib/sinatra/test.rb
@@ -120,6 +120,7 @@ class TestHarness
def initialize(app=nil)
@app = app || Sinatra::Application
+ @app.set(:environment, :test)
end
end
end

0 comments on commit 9af3772

Please sign in to comment.