diff options
Diffstat (limited to 'spec/ruby/core/dir/shared/closed.rb')
| -rw-r--r-- | spec/ruby/core/dir/shared/closed.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/dir/shared/closed.rb b/spec/ruby/core/dir/shared/closed.rb index a1bce06a08..c868fd6e6d 100644 --- a/spec/ruby/core/dir/shared/closed.rb +++ b/spec/ruby/core/dir/shared/closed.rb @@ -1,9 +1,9 @@ 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) {} - }.should raise_error(IOError) + }.should.raise(IOError) end end |
