diff options
Diffstat (limited to 'spec/pryrc_spec.rb')
-rw-r--r-- | spec/pryrc_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/pryrc_spec.rb b/spec/pryrc_spec.rb index a7b5fc2a..59f2eed9 100644 --- a/spec/pryrc_spec.rb +++ b/spec/pryrc_spec.rb @@ -39,7 +39,7 @@ describe Pry do it "should not load the pryrc if pryrc's directory permissions do not allow this" do Dir.mktmpdir do |dir| File.chmod 0o000, dir - Pry::LOCAL_RC_FILE.replace File.join(dir, '.pryrc') + stub_const('Pry::LOCAL_RC_FILE', File.join(dir, '.pryrc')) Pry.config.should_load_rc = true expect do Pry.start(self, input: StringIO.new("exit-all\n"), output: StringIO.new) |