test/test_helper.rb in vegas-0.0.3.1 vs test/test_helper.rb in vegas-0.0.4

- old
+ new

@@ -1,12 +1,19 @@ -require 'rubygems' -require 'bacon' -require 'sinatra' -require 'rack/test' +dependencies = %w{ + bacon + sinatra + rack/test + nokogiri +} -require File.join(File.dirname(__FILE__), '..', 'lib', 'vegas.rb') +begin + dependencies.each {|f| require f } +rescue LoadError + require 'rubygems' + dependencies.each {|f| require f } +end -require 'nokogiri' +require File.join(File.dirname(__FILE__), '..', 'lib', 'vegas.rb') module TestHelper def rackup(app) Rack::Test::Session.new(app) end \ No newline at end of file