mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@a6b8805
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6530b14cee
commit
8c5b60eb22
218 changed files with 4069 additions and 328 deletions
|
@ -15,7 +15,7 @@ describe "Array#at" do
|
|||
a.at(7).should == nil
|
||||
end
|
||||
|
||||
it "returns the (-n)'th elemet from the last, for the given negative index n" do
|
||||
it "returns the (-n)'th element from the last, for the given negative index n" do
|
||||
a = [1, 2, 3, 4, 5, 6]
|
||||
a.at(-1).should == 6
|
||||
a.at(-2).should == 5
|
||||
|
@ -50,7 +50,7 @@ describe "Array#at" do
|
|||
lambda { [].at("cat") }.should raise_error(TypeError)
|
||||
end
|
||||
|
||||
it "raises an ArgumentError when 2 or more arguments is passed" do
|
||||
it "raises an ArgumentError when 2 or more arguments are passed" do
|
||||
lambda { [:a, :b].at(0,1) }.should raise_error(ArgumentError)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue