1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Avoid ignored literals

This commit is contained in:
Matijs van Zuijlen 2015-01-23 13:02:38 +01:00
parent dd16a5d0ac
commit 3eb7c55cd1

View file

@ -174,7 +174,7 @@ describe "edit" do
before do before do
@tf = Tempfile.new(["pry", ".rb"]) @tf = Tempfile.new(["pry", ".rb"])
@path = @tf.path @path = @tf.path
@tf << "1\n2\nraise RuntimeError" @tf << "_foo = 1\n_bar = 2\nraise RuntimeError"
@tf.flush @tf.flush
begin begin
@ -255,7 +255,7 @@ describe "edit" do
FOO3.should eq 'PIYO' FOO3.should eq 'PIYO'
@tf.rewind @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'" @patched_def.should eq "FOO3 = 'PIYO'"
end end
end end