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
1 changed files with 1 additions and 1 deletions

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)