From: Bharat Ruparel Date: 2010-10-17T10:55:55+09:00 Subject: Re: require behavior change from 1.8.7 p299 to 1.9.2 p0 Thanks Luis. I did some reading on Sinatra/rack-testing plus Ruby 1.9.2 upgrade. I was really trying to get tests to work in my Sinatra application. I was successful in being able to run the tests. Here is how: I have a file called sharpener.rb in my project base directory. I created a test directory and a file called test_shortener.rb in it. Here is a snippet of require statements in it: require 'rubygems' require 'sinatra' require 'test/unit' require 'rack/test' require File.join(Dir.pwd, 'shortener') ENV['RACK_ENV'] = 'test' class TestShortener < Test::Unit::TestCase .... end Note that I am running the tests from the base directory as follows: ruby test/test_shortener.rb It works fine. I am curious though. How is including the current directory in the path a security risk? Appreciate your time. Bharat -- Posted via http://www.ruby-forum.com/.