Skip to content

Commit

Permalink
Merge pull request #1176 from herwinw/array_plus_typeerror
Browse files Browse the repository at this point in the history
Typo fix in specs of Array#+
  • Loading branch information
herwinw committed Jun 29, 2024
2 parents d2e277e + 1a2b03c commit fff399f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/array/plus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
([1, 2, 3] + obj).should == [1, 2, 3, "x", "y"]
end

it "raises a Typeerror if the given argument can't be converted to an array" do
it "raises a TypeError if the given argument can't be converted to an array" do
-> { [1, 2, 3] + nil }.should raise_error(TypeError)
-> { [1, 2, 3] + "abc" }.should raise_error(TypeError)
end
Expand Down

0 comments on commit fff399f

Please sign in to comment.