aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/dir
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-05-03 12:28:29 +0200
committerBenoit Daloze <eregontp@gmail.com>2020-05-03 12:28:29 +0200
commit5aaa75e7c1f4b7912c10ffdcb1cac581e20eda39 (patch)
treee1694f5a4a5558884b1b8f3890b186793e5e982f /spec/ruby/core/dir
parentf646d20aaeb8f02bcd3d0c5c3f5a372da654502a (diff)
downloadruby-5aaa75e7c1f4b7912c10ffdcb1cac581e20eda39.tar.gz
Update to ruby/spec@032ee74
Diffstat (limited to 'spec/ruby/core/dir')
-rw-r--r--spec/ruby/core/dir/glob_spec.rb2
-rw-r--r--spec/ruby/core/dir/home_spec.rb4
-rw-r--r--spec/ruby/core/dir/shared/open.rb2
3 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/dir/glob_spec.rb b/spec/ruby/core/dir/glob_spec.rb
index 4b437b0e24..d4888ee147 100644
--- a/spec/ruby/core/dir/glob_spec.rb
+++ b/spec/ruby/core/dir/glob_spec.rb
@@ -119,7 +119,7 @@ describe "Dir.glob" do
end
it "handles infinite directory wildcards" do
- Dir.glob('**/**/**').empty?.should == false
+ Dir.glob('**/**/**').should_not.empty?
end
it "handles simple filename patterns" do
diff --git a/spec/ruby/core/dir/home_spec.rb b/spec/ruby/core/dir/home_spec.rb
index 73deca2cfd..713ba9db9a 100644
--- a/spec/ruby/core/dir/home_spec.rb
+++ b/spec/ruby/core/dir/home_spec.rb
@@ -17,7 +17,7 @@ describe "Dir.home" do
end
it "returns a non-frozen string" do
- Dir.home.frozen?.should == false
+ Dir.home.should_not.frozen?
end
end
@@ -35,7 +35,7 @@ describe "Dir.home" do
end
it "returns a non-frozen string" do
- Dir.home(ENV['USER']).frozen?.should == false
+ Dir.home(ENV['USER']).should_not.frozen?
end
end
diff --git a/spec/ruby/core/dir/shared/open.rb b/spec/ruby/core/dir/shared/open.rb
index 76b08dc288..920845cba1 100644
--- a/spec/ruby/core/dir/shared/open.rb
+++ b/spec/ruby/core/dir/shared/open.rb
@@ -66,7 +66,7 @@ describe :dir_open, shared: true do
Dir.send(@method, DirSpecs.mock_dir) do |dir|
io = IO.for_fd(dir.fileno)
io.autoclose = false
- io.close_on_exec?.should == true
+ io.should.close_on_exec?
end
end
end