mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Fix calls to Tempfile.new (GH issue #792)
Suffix of "*.rb" caused temp files to be named with "*.rb" at the end, literally. Not all file systems like that, and it's almost certainly not what was intended.
This commit is contained in:
parent
28bdf098ce
commit
611708386e
2 changed files with 2 additions and 2 deletions
|
@ -143,7 +143,7 @@ describe "cat" do
|
||||||
it 'each successive cat --ex should show the next level of backtrace, and going past the final level should return to the first' do
|
it 'each successive cat --ex should show the next level of backtrace, and going past the final level should return to the first' do
|
||||||
temp_files = []
|
temp_files = []
|
||||||
3.times do |i|
|
3.times do |i|
|
||||||
temp_files << Tempfile.new(['pry', '*.rb'])
|
temp_files << Tempfile.new(['pry', '.rb'])
|
||||||
temp_files.last << "bt number #{i}"
|
temp_files.last << "bt number #{i}"
|
||||||
temp_files.last.flush
|
temp_files.last.flush
|
||||||
end
|
end
|
||||||
|
|
|
@ -321,7 +321,7 @@ describe "edit" do
|
||||||
describe "old edit-method tests now migrated to edit" do
|
describe "old edit-method tests now migrated to edit" do
|
||||||
describe "on a method defined in a file" do
|
describe "on a method defined in a file" do
|
||||||
before do
|
before do
|
||||||
@tempfile = (Tempfile.new(['pry', '*.rb']))
|
@tempfile = (Tempfile.new(['pry', '.rb']))
|
||||||
@tempfile.puts <<-EOS
|
@tempfile.puts <<-EOS
|
||||||
module A
|
module A
|
||||||
def a
|
def a
|
||||||
|
|
Loading…
Reference in a new issue