From 3eb7c55cd138bd0d8ae638c36b50f1da32583e7b Mon Sep 17 00:00:00 2001 From: Matijs van Zuijlen Date: Fri, 23 Jan 2015 13:02:38 +0100 Subject: [PATCH] Avoid ignored literals --- spec/commands/edit_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/commands/edit_spec.rb b/spec/commands/edit_spec.rb index bf1b1c2d..4c8d6fd2 100644 --- a/spec/commands/edit_spec.rb +++ b/spec/commands/edit_spec.rb @@ -174,7 +174,7 @@ describe "edit" do before do @tf = Tempfile.new(["pry", ".rb"]) @path = @tf.path - @tf << "1\n2\nraise RuntimeError" + @tf << "_foo = 1\n_bar = 2\nraise RuntimeError" @tf.flush begin @@ -255,7 +255,7 @@ describe "edit" do FOO3.should eq 'PIYO' @tf.rewind - @tf.read.should eq "1\n2\nraise RuntimeError" + @tf.read.should eq "_foo = 1\n_bar = 2\nraise RuntimeError" @patched_def.should eq "FOO3 = 'PIYO'" end end