Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and test with only 1.8 or 1.9 mode enabled.
- Loading branch information
Showing
5 changed files
with
23 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
require File.expand_path('../../spec_helper', __FILE__) | ||
|
||
describe "The -Xversion command line option" do | ||
|
||
describe "-X18" do | ||
it "sets RUBY_VERSION to 1.8.7 when RBXOPT specifies 1.9.3" do | ||
opts = { :args => %Q{-e "puts RUBY_VERSION" 2>&1}, :env => { "RBXOPT" => "-X19" }, :options => "-X18" } | ||
ruby_exe(nil, opts).chomp.should == "1.8.7" | ||
ruby_version_is ""..."1.9" do | ||
describe "-X18" do | ||
it "sets RUBY_VERSION to 1.8.7 when RBXOPT specifies 1.9.3" do | ||
opts = { :args => %Q{-e "puts RUBY_VERSION" 2>&1}, :env => { "RBXOPT" => "-X19" }, :options => "-X18" } | ||
ruby_exe(nil, opts).chomp.should == "1.8.7" | ||
end | ||
end | ||
end | ||
|
||
describe "-X19" do | ||
it "sets RUBY_VERSION to 1.9.3 when RBXOPT specifies 1.8.7" do | ||
opts = { :args => %Q{-e "puts RUBY_VERSION" 2>&1}, :env => { "RBXOPT" => "-X18" }, :options => "-X19" } | ||
ruby_exe(nil, opts).chomp.should == "1.9.3" | ||
ruby_version_is "1.9" do | ||
describe "-X19" do | ||
it "sets RUBY_VERSION to 1.9.3 when RBXOPT specifies 1.8.7" do | ||
opts = { :args => %Q{-e "puts RUBY_VERSION" 2>&1}, :env => { "RBXOPT" => "-X18" }, :options => "-X19" } | ||
ruby_exe(nil, opts).chomp.should == "1.9.3" | ||
end | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters