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:
parent
b467024294
commit
40a83eb0f2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue