1
0
Fork 0
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:
Andrew Vos 2014-07-20 00:13:30 +01:00
parent 5101cd4e34
commit 341c19f8ef

View file

@ -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)