mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
s/context=/push_binding
This commit is contained in:
parent
edd3970917
commit
47ad5fd53f
2 changed files with 3 additions and 3 deletions
|
@ -130,7 +130,7 @@ class PryTester
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
def context=(context)
|
def push_binding(context)
|
||||||
@pry.push_binding context
|
@pry.push_binding context
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ describe "hist" do
|
||||||
@hist.push "@y = 20"
|
@hist.push "@y = 20"
|
||||||
@hist.push "@z = 30"
|
@hist.push "@z = 30"
|
||||||
|
|
||||||
@t.context = o
|
@t.push_binding o
|
||||||
@t.eval 'hist --replay -1'
|
@t.eval 'hist --replay -1'
|
||||||
|
|
||||||
@t.next_input.should == "@z = 30\n"
|
@t.next_input.should == "@z = 30\n"
|
||||||
|
@ -40,7 +40,7 @@ describe "hist" do
|
||||||
@hist.push "@x = 10"
|
@hist.push "@x = 10"
|
||||||
@hist.push "@y = 20"
|
@hist.push "@y = 20"
|
||||||
|
|
||||||
@t.context = o
|
@t.push_binding o
|
||||||
@t.eval 'hist --replay 0..2'
|
@t.eval 'hist --replay 0..2'
|
||||||
|
|
||||||
@t.next_input.should == "@x = 10\n@y = 20\n"
|
@t.next_input.should == "@x = 10\n@y = 20\n"
|
||||||
|
|
Loading…
Reference in a new issue