From 47ad5fd53f24c17371429b20b1749f78d51b6e1f Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Mon, 17 Dec 2012 23:58:02 -0800 Subject: [PATCH] s/context=/push_binding --- lib/pry/test/helper.rb | 2 +- spec/commands/hist_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pry/test/helper.rb b/lib/pry/test/helper.rb index 86084ca1..9543920a 100644 --- a/lib/pry/test/helper.rb +++ b/lib/pry/test/helper.rb @@ -130,7 +130,7 @@ class PryTester result end - def context=(context) + def push_binding(context) @pry.push_binding context end diff --git a/spec/commands/hist_spec.rb b/spec/commands/hist_spec.rb index 79344317..cccc4330 100644 --- a/spec/commands/hist_spec.rb +++ b/spec/commands/hist_spec.rb @@ -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"