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:
parent
dd16a5d0ac
commit
3eb7c55cd1
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue