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:
parent
233aa8132e
commit
b99b4d4249
2 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,7 @@ class Pry
|
|||
# history file.
|
||||
def clear
|
||||
@clearer.call
|
||||
@original_lines = 0
|
||||
@history = []
|
||||
end
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue