diff options
Diffstat (limited to 'spec/ruby/core/kernel/load_spec.rb')
| -rw-r--r-- | spec/ruby/core/kernel/load_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/core/kernel/load_spec.rb b/spec/ruby/core/kernel/load_spec.rb index 36cc07e38a..890aab8c27 100644 --- a/spec/ruby/core/kernel/load_spec.rb +++ b/spec/ruby/core/kernel/load_spec.rb @@ -1,7 +1,7 @@ -require File.expand_path('../../../spec_helper', __FILE__) -require File.expand_path('../../../fixtures/code_loading', __FILE__) -require File.expand_path('../shared/load', __FILE__) -require File.expand_path('../shared/require', __FILE__) +require_relative '../../spec_helper' +require_relative '../../fixtures/code_loading' +require_relative 'shared/load' +require_relative 'shared/require' describe "Kernel#load" do before :each do @@ -13,7 +13,7 @@ describe "Kernel#load" do end it "is a private method" do - Kernel.should have_private_instance_method(:load) + Kernel.private_instance_methods(false).should.include?(:load) end it_behaves_like :kernel_require_basic, :load, CodeLoadingSpecs::Method.new |
