1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Fix history clear bag(No re-init @original_lines)

This commit is contained in:
tbpgr 2015-01-11 03:54:27 +09:00
parent 233aa8132e
commit b99b4d4249
2 changed files with 2 additions and 0 deletions

View file

@ -57,6 +57,7 @@ class Pry
# history file.
def clear
@clearer.call
@original_lines = 0
@history = []
end

View file

@ -53,6 +53,7 @@ describe Pry do
Pry.history.to_a.size.should > 0
Pry.history.clear
Pry.history.to_a.size.should == 0
Pry.history.original_lines.should == 0
end
it "doesn't affect the contents of the history file" do