diff options
Diffstat (limited to 'spec/ruby/core/dir/each_child_spec.rb')
-rw-r--r-- | spec/ruby/core/dir/each_child_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/dir/each_child_spec.rb b/spec/ruby/core/dir/each_child_spec.rb index c04d212bfa..dcc9a456c7 100644 --- a/spec/ruby/core/dir/each_child_spec.rb +++ b/spec/ruby/core/dir/each_child_spec.rb @@ -32,7 +32,7 @@ ruby_version_is "2.5" do end it "raises a SystemCallError if passed a nonexistent directory" do - lambda { Dir.each_child(DirSpecs.nonexistent) {} }.should raise_error(SystemCallError) + -> { Dir.each_child(DirSpecs.nonexistent) {} }.should raise_error(SystemCallError) end describe "when no block is given" do |