1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Make spec work for ruby 1.9.3 and possibly other versions.

This commit is contained in:
egwspiti 2015-06-29 00:15:23 +03:00
parent b467024294
commit 40a83eb0f2

View file

@ -39,11 +39,11 @@ describe Pry do
it "should not load the pryrc if pryrc's directory permissions do not allow this" do it "should not load the pryrc if pryrc's directory permissions do not allow this" do
Dir.mktmpdir do |dir| Dir.mktmpdir do |dir|
FileUtils.chmod 0, dir File.chmod 0000, dir
Pry::LOCAL_RC_FILE.replace File.join(dir, '.pryrc') Pry::LOCAL_RC_FILE.replace File.join(dir, '.pryrc')
Pry.config.should_load_rc = true Pry.config.should_load_rc = true
expect { Pry.start(self, :input => StringIO.new("exit-all\n"), :output => StringIO.new) }.to_not raise_error 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
end end