Browse files

Ensure proper dependency require for tests.

  • Loading branch information...
1 parent 5ee52f4 commit de55385b59a864d750cc54c607120b140dba018d @blambeau committed Jun 13, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/spec_helper.rb
View
5 spec/spec_helper.rb
@@ -1,6 +1,9 @@
require 'epath'
$root_folder ||= Path.backfind('.[Rakefile]')
+require 'tilt'
+require 'sinatra/base'
+
# Require wlang
$LOAD_PATH.unshift(($root_folder/:lib).to_s)
require 'wlang'
@@ -54,8 +57,6 @@ def tpl(what)
end
def sinatra_app(&block)
- require 'sinatra/base'
- require 'wlang/tilt'
Sinatra.new(Sinatra::Base, &block).new!
end

0 comments on commit de55385

Please sign in to comment.