PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
4 sec ago
Untitled
7 sec ago
Message to TD
10 sec ago
Untitled
14 sec ago
that_undead_error
15 sec ago
Untitled
19 sec ago
Untitled
20 sec ago
Untitled
25 sec ago
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)
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
create a
new version
of this paste
RAW Paste Data
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