From 1d818031b8eefb37d7e5163bbf2545828f9b5336 Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Tue, 18 Dec 2012 00:14:56 -0800 Subject: [PATCH] Remove final rep(o) --- spec/command_integration_spec.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spec/command_integration_spec.rb b/spec/command_integration_spec.rb index 01e949dd..887d55a2 100644 --- a/spec/command_integration_spec.rb +++ b/spec/command_integration_spec.rb @@ -518,10 +518,9 @@ describe "commands" do child_klass = Pry::CommandSet.new klass do end - Pry.new(:print => proc {}, :input => InputTester.new("v"), - :output => @str_output, :commands => child_klass).rep("john") - - @str_output.string.rstrip.should == "john" + mock_pry(Pry.binding_for('john'), "v", :print => proc {}, :commands => child_klass, + :output => @str_output) + @str_output.string.should == "john\n" end it 'should import commands from another command object' do