summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorbronzdoc <lsagastume1990@gmail.com>2016-02-11 13:06:11 -0600
committerbronzdoc <lsagastume1990@gmail.com>2016-02-11 13:06:11 -0600
commit7f30e62270f3ad74cf13ac36fde27d00be61af0d (patch)
tree3a97b11152b61fb053487684f0b2e1fb5ce8bf2d /spec
parentaed885acd634a147b980fe29d48c68a170f2972b (diff)
downloadpry-7f30e62270f3ad74cf13ac36fde27d00be61af0d.tar.gz
Test histfile content
Diffstat (limited to 'spec')
-rw-r--r--spec/history_spec.rb1
1 files changed, 1 insertions, 0 deletions
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