mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@241f9e7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e59bf54b3a
commit
e87fb88be8
142 changed files with 1165 additions and 1078 deletions
|
@ -3,7 +3,8 @@ require_relative '../fixtures/classes'
|
|||
|
||||
describe :struct_select, shared: true do
|
||||
it "raises an ArgumentError if given any non-block arguments" do
|
||||
lambda { StructClasses::Car.new.send(@method, 1) { } }.should raise_error(ArgumentError)
|
||||
struct = StructClasses::Car.new
|
||||
-> { struct.send(@method, 1) { } }.should raise_error(ArgumentError)
|
||||
end
|
||||
|
||||
it "returns a new array of elements for which block is true" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue