diff --git a/spec/history_spec.rb b/spec/history_spec.rb index 112052d0..d782f115 100644 --- a/spec/history_spec.rb +++ b/spec/history_spec.rb @@ -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)