From 7f30e62270f3ad74cf13ac36fde27d00be61af0d Mon Sep 17 00:00:00 2001 From: bronzdoc <lsagastume1990@gmail.com> Date: Thu, 11 Feb 2016 13:06:11 -0600 Subject: [PATCH] Test histfile content --- spec/history_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/history_spec.rb b/spec/history_spec.rb index 9066fc3d..5aa09e5a 100644 --- a/spec/history_spec.rb +++ b/spec/history_spec.rb @@ -160,6 +160,7 @@ describe Pry do @history.push "exit" expect(File.open(@histfile.path).entries.size).to eq 1 + expect(IO.readlines(@histfile.path).first).to eq "kakaroto\n" end end