diff options
Diffstat (limited to 'spec/ruby/core/dir/shared/closed.rb')
-rw-r--r-- | spec/ruby/core/dir/shared/closed.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/dir/shared/closed.rb b/spec/ruby/core/dir/shared/closed.rb index a1bce06a08..17d8332c2a 100644 --- a/spec/ruby/core/dir/shared/closed.rb +++ b/spec/ruby/core/dir/shared/closed.rb @@ -1,6 +1,6 @@ describe :dir_closed, shared: true do it "raises an IOError when called on a closed Dir instance" do - lambda { + -> { dir = Dir.open DirSpecs.mock_dir dir.close dir.send(@method) {} |