s/context=/push_binding

This commit is contained in:
Conrad Irwin 2012-12-17 23:58:02 -08:00
parent edd3970917
commit 47ad5fd53f
2 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ class PryTester
result
end
def context=(context)
def push_binding(context)
@pry.push_binding context
end

View File

@ -29,7 +29,7 @@ describe "hist" do
@hist.push "@y = 20"
@hist.push "@z = 30"
@t.context = o
@t.push_binding o
@t.eval 'hist --replay -1'
@t.next_input.should == "@z = 30\n"
@ -40,7 +40,7 @@ describe "hist" do
@hist.push "@x = 10"
@hist.push "@y = 20"
@t.context = o
@t.push_binding o
@t.eval 'hist --replay 0..2'
@t.next_input.should == "@x = 10\n@y = 20\n"