From 40a83eb0f223e868716e3fb4e5b007199e24a7cf Mon Sep 17 00:00:00 2001 From: egwspiti Date: Mon, 29 Jun 2015 00:15:23 +0300 Subject: [PATCH] Make spec work for ruby 1.9.3 and possibly other versions. --- spec/pryrc_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/pryrc_spec.rb b/spec/pryrc_spec.rb index 3e9fd9b5..9324b5de 100644 --- a/spec/pryrc_spec.rb +++ b/spec/pryrc_spec.rb @@ -39,11 +39,11 @@ describe Pry do it "should not load the pryrc if pryrc's directory permissions do not allow this" do Dir.mktmpdir do |dir| - FileUtils.chmod 0, dir + File.chmod 0000, dir Pry::LOCAL_RC_FILE.replace File.join(dir, '.pryrc') Pry.config.should_load_rc = true expect { Pry.start(self, :input => StringIO.new("exit-all\n"), :output => StringIO.new) }.to_not raise_error - FileUtils.chmod 777, dir + File.chmod 0777, dir end end