Skip to content

Instantly share code, notes, and snippets.

@jc00ke
Created January 8, 2012 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jc00ke/1580083 to your computer and use it in GitHub Desktop.
Save jc00ke/1580083 to your computer and use it in GitHub Desktop.
describe "-Xversion command line option" do
it "sets RUBY_VERSION to X18 when RBXOPT is set with -X19" do
ENV["RBXOPT"] = "-X19"
ruby_exe(nil, :args => %Q{-X18 -e 'puts RUBY_VERSION'}).chomp.should == "1.8.7"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment