Skip to content

Commit

Permalink
Ensure proper dependency require for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
blambeau committed Jun 13, 2012
1 parent 5ee52f4 commit de55385
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit de55385

Please sign in to comment.