From 2031929f35b75aec5951ac5ba8feafe79880c9ae Mon Sep 17 00:00:00 2001 From: Stephan Hagemann Date: Mon, 2 May 2011 23:53:20 +0200 Subject: [PATCH] Make test for ap returning original value does not output extraneous characters. --- spec/awesome_print_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/awesome_print_spec.rb b/spec/awesome_print_spec.rb index db7e2ec..1e7c610 100644 --- a/spec/awesome_print_spec.rb +++ b/spec/awesome_print_spec.rb @@ -9,7 +9,8 @@ describe "AwesomePrint" do describe "ap method" do it "return value" do - object = "" + object = rand + self.stub!(:puts) (ap object).should eql(object) end end