Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 22nd, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. describe "-Xversion command line option" do
  2.   it "sets RUBY_VERSION to X18 when RBXOPT is set with -X19" do
  3.     ENV["RBXOPT"] = "-X19"
  4.     ruby_exe(nil, :args => %Q{-X18 -e 'puts RUBY_VERSION'}).chomp.should == "1.8.7"
  5.   end
  6. end