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: rubinius/rubinius
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f7ba17ee50ce
Choose a base ref
...
head repository: rubinius/rubinius
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c710f737f83e
Choose a head ref
  • 2 commits
  • 8 files changed
  • 2 contributors

Commits on Mar 7, 2015

  1. Copy the full SHA
    16fef8e View commit details
  2. Merge pull request #3348 from jsyeo/arg-error

    Argument error -> ArgumentError
    Yorick Peterse committed Mar 7, 2015
    Copy the full SHA
    c710f73 View commit details
2 changes: 1 addition & 1 deletion spec/ruby/core/enumerable/each_cons_spec.rb
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
acc.should == @in_threes
end

it "raises an Argument Error if there is not a single parameter > 0" do
it "raises an ArgumentError if there is not a single parameter > 0" do
lambda{ @enum.each_cons(0){} }.should raise_error(ArgumentError)
lambda{ @enum.each_cons(-2){} }.should raise_error(ArgumentError)
lambda{ @enum.each_cons{} }.should raise_error(ArgumentError)
2 changes: 1 addition & 1 deletion spec/ruby/core/enumerable/each_entry_spec.rb
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
ScratchPad.recorded.should == [[:a, 0], [:b, 1]]
end

it "raises an Argument error when extra arguments" do
it "raises an ArgumentError when extra arguments" do
lambda { @enum.each_entry("one").to_a }.should raise_error(ArgumentError)
lambda { @enum.each_entry("one"){}.to_a }.should raise_error(ArgumentError)
end
2 changes: 1 addition & 1 deletion spec/ruby/core/enumerable/each_slice_spec.rb
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
acc.should == @sliced
end

it "raises an Argument Error if there is not a single parameter > 0" do
it "raises an ArgumentError if there is not a single parameter > 0" do
lambda{ @enum.each_slice(0){} }.should raise_error(ArgumentError)
lambda{ @enum.each_slice(-2){} }.should raise_error(ArgumentError)
lambda{ @enum.each_slice{} }.should raise_error(ArgumentError)
2 changes: 1 addition & 1 deletion spec/ruby/core/enumerable/max_spec.rb
Original file line number Diff line number Diff line change
@@ -105,7 +105,7 @@
end

context "that is negative" do
it "raises an Argument error" do
it "raises an ArgumentError" do
lambda { @e_ints.max(-1) }.should raise_error(ArgumentError)
end
end
2 changes: 1 addition & 1 deletion spec/ruby/core/enumerable/min_by_spec.rb
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@
end

context "when n is negative" do
it "raises an Argument error" do
it "raises an ArgumentError" do
lambda { @enum.min_by(-1) { |i| i.to_s } }.should raise_error(ArgumentError)
end
end
2 changes: 1 addition & 1 deletion spec/ruby/core/enumerable/min_spec.rb
Original file line number Diff line number Diff line change
@@ -109,7 +109,7 @@
end

context "that is negative" do
it "raises an Argument error" do
it "raises an ArgumentError" do
lambda { @e_ints.min(-1) }.should raise_error(ArgumentError)
end
end
4 changes: 2 additions & 2 deletions spec/ruby/core/enumerable/slice_after_spec.rb
Original file line number Diff line number Diff line change
@@ -40,13 +40,13 @@
end

describe "and an argument" do
it "raises an Argument error" do
it "raises an ArgumentError" do
lambda { @enum.slice_after(42) { |i| i == 6 } }.should raise_error(ArgumentError)
end
end
end

it "raises an Argument error when given an incorrect number of arguments" do
it "raises an ArgumentError when given an incorrect number of arguments" do
lambda { @enum.slice_after("one", "two") }.should raise_error(ArgumentError)
lambda { @enum.slice_after }.should raise_error(ArgumentError)
end
2 changes: 1 addition & 1 deletion spec/ruby/core/enumerable/slice_before_spec.rb
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@
end
end

it "raises an Argument error when given an incorrect number of arguments" do
it "raises an ArgumentError when given an incorrect number of arguments" do
lambda { @enum.slice_before("one", "two") }.should raise_error(ArgumentError)
lambda { @enum.slice_before }.should raise_error(ArgumentError)
end