Skip to content

Instantly share code, notes, and snippets.

@francois
Created May 25, 2009 13:20
Show Gist options
  • Select an option

  • Save francois/117539 to your computer and use it in GitHub Desktop.

Select an option

Save francois/117539 to your computer and use it in GitHub Desktop.
require File.dirname(__FILE__) + '/../spec_helper'
describe "The RUBYOPT environment variable" do
it "is parsed for '-d'" do
ruby_exe("fixtures/debug.rb", :dir => File.dirname(__FILE__), :env => "RUBYOPT=-d").chomp.should == "true"
end
it "is parsed for '-r'" do
ruby_exe("fixtures/require.rb", :env => "RUBYOPT='-r fixtures/test_file'", :dir => File.dirname(__FILE__)).chomp.should include("fixtures/test_file.rb")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment