diff options
Diffstat (limited to 'spec/ruby/core/process/constants_spec.rb')
| -rw-r--r-- | spec/ruby/core/process/constants_spec.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/spec/ruby/core/process/constants_spec.rb b/spec/ruby/core/process/constants_spec.rb index 57cacadef2..62e8f2ee4a 100644 --- a/spec/ruby/core/process/constants_spec.rb +++ b/spec/ruby/core/process/constants_spec.rb @@ -20,8 +20,8 @@ describe "Process::Constants" do RLIMIT_NPROC RLIMIT_NOFILE ].each do |const| - Process.const_defined?(const).should be_true - Process.const_get(const).should be_an_instance_of(Integer) + Process.const_defined?(const).should == true + Process.const_get(const).should.instance_of?(Integer) end end end @@ -33,8 +33,8 @@ describe "Process::Constants" do RLIM_SAVED_CUR RLIMIT_AS ].each do |const| - Process.const_defined?(const).should be_true - Process.const_get(const).should be_an_instance_of(Integer) + Process.const_defined?(const).should == true + Process.const_get(const).should.instance_of?(Integer) end end end @@ -61,8 +61,8 @@ describe "Process::Constants" do RLIM_SAVED_MAX RLIM_SAVED_CUR ].each do |const| - Process.const_defined?(const).should be_true - Process.const_get(const).should be_an_instance_of(Integer) + Process.const_defined?(const).should == true + Process.const_get(const).should.instance_of?(Integer) end end end @@ -73,8 +73,8 @@ describe "Process::Constants" do RLIMIT_SBSIZE RLIMIT_AS ].each do |const| - Process.const_defined?(const).should be_true - Process.const_get(const).should be_an_instance_of(Integer) + Process.const_defined?(const).should == true + Process.const_get(const).should.instance_of?(Integer) end end end @@ -84,8 +84,8 @@ describe "Process::Constants" do %i[ RLIMIT_NPTS ].each do |const| - Process.const_defined?(const).should be_true - Process.const_get(const).should be_an_instance_of(Integer) + Process.const_defined?(const).should == true + Process.const_get(const).should.instance_of?(Integer) end end end @@ -107,7 +107,7 @@ describe "Process::Constants" do RLIM_SAVED_MAX RLIM_SAVED_CUR ].each do |const| - Process.const_defined?(const).should be_false + Process.const_defined?(const).should == false end end end |
