mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix test that fails in docker
This test fails because it's not using File.join on ENV["HOME"] (which is null when run under root in docker) which means that we're asserting on the direction "//test_history" instead of "/test_history".
This commit is contained in:
parent
5101cd4e34
commit
341c19f8ef
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ describe Pry do
|
|||
error = Class.new(RuntimeError)
|
||||
|
||||
File.expects(:open).
|
||||
with("#{ENV['HOME']}/test_history", 'a', 0600).
|
||||
with(File.join(ENV['HOME'].to_s, "/test_history"), 'a', 0600).
|
||||
raises(error)
|
||||
|
||||
-> { history.push 'a line' }.should.raise(error)
|
||||
|
|
Loading…
Add table
Reference in a new issue