diff options
Diffstat (limited to 'spec/ruby/core/dir/children_spec.rb')
-rw-r--r-- | spec/ruby/core/dir/children_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/dir/children_spec.rb b/spec/ruby/core/dir/children_spec.rb index ef8b20b1f0..8f6e62b463 100644 --- a/spec/ruby/core/dir/children_spec.rb +++ b/spec/ruby/core/dir/children_spec.rb @@ -66,7 +66,7 @@ ruby_version_is "2.5" do end it "raises a SystemCallError if called with a nonexistent directory" do - lambda { Dir.children DirSpecs.nonexistent }.should raise_error(SystemCallError) + -> { Dir.children DirSpecs.nonexistent }.should raise_error(SystemCallError) end end end |