Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f8555f4833b4
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 74c6b085b8eb
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Aug 11, 2016

  1. Ensure to use -e for -e specs

    eregon committed Aug 11, 2016
    Copy the full SHA
    02d87ae View commit details
  2. Copy the full SHA
    74c6b08 View commit details
Showing with 3 additions and 3 deletions.
  1. +2 −2 spec/ruby/command_line/dash_e_spec.rb
  2. +1 −1 spec/ruby/command_line/rubyopt_spec.rb
4 changes: 2 additions & 2 deletions spec/ruby/command_line/dash_e_spec.rb
Original file line number Diff line number Diff line change
@@ -10,11 +10,11 @@
end

it "uses 'main' as self" do
ruby_exe("puts self").chomp.should == "main"
ruby_exe("puts self", escape: false).chomp.should == "main"
end

it "uses '-e' as file" do
ruby_exe("puts __FILE__").chomp.should == "-e"
ruby_exe("puts __FILE__", escape: false).chomp.should == "-e"
end

#needs to test return => LocalJumpError
2 changes: 1 addition & 1 deletion spec/ruby/command_line/rubyopt_spec.rb
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@
it "requires the file for '-r'" do
f = fixture __FILE__, "rubyopt"
ENV["RUBYOPT"] = "-r#{f}"
ruby_exe("").should =~ /^rubyopt.rb required/
ruby_exe("0", args: '2>&1').should =~ /^rubyopt.rb required/
end

it "raises a RuntimeError for '-a'" do