mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@6cf8ebe
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c7c6763f6
commit
75334db3c6
111 changed files with 1031 additions and 231 deletions
|
@ -53,7 +53,7 @@ describe "Array#last" do
|
|||
array.last.should equal(array)
|
||||
end
|
||||
|
||||
it "tries to convert the passed argument to an Integer usinig #to_int" do
|
||||
it "tries to convert the passed argument to an Integer using #to_int" do
|
||||
obj = mock('to_int')
|
||||
obj.should_receive(:to_int).and_return(2)
|
||||
[1, 2, 3, 4, 5].last(obj).should == [4, 5]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue