diff --git a/spec/commands/cat_spec.rb b/spec/commands/cat_spec.rb index fd3623c1..28f79519 100644 --- a/spec/commands/cat_spec.rb +++ b/spec/commands/cat_spec.rb @@ -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 temp_files = [] 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.flush end diff --git a/spec/commands/edit_spec.rb b/spec/commands/edit_spec.rb index 9bb9d770..24ca3e9d 100644 --- a/spec/commands/edit_spec.rb +++ b/spec/commands/edit_spec.rb @@ -321,7 +321,7 @@ describe "edit" do describe "old edit-method tests now migrated to edit" do describe "on a method defined in a file" do before do - @tempfile = (Tempfile.new(['pry', '*.rb'])) + @tempfile = (Tempfile.new(['pry', '.rb'])) @tempfile.puts <<-EOS module A def a