Permalink
Browse files

Fix spec for 1.8.6

  • Loading branch information...
1 parent bffc397 commit 6c54cd85bd98a912670b8b1c86f9a908813d513d @jakedouglas jakedouglas committed Mar 27, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/memprof_spec.rb
View
@@ -76,7 +76,7 @@ def filedata
Memprof.stop
Memprof.dump_all(filename)
- obj = File.open(filename, 'r').each_line.find do |line|
+ obj = File.open(filename, 'r').readlines.find do |line|
line =~ /"dump out the entire heap"/
end
@@ -90,7 +90,7 @@ def filedata
@str = "some random" + " string"
Memprof.dump_all(filename)
- obj = File.open(filename, 'r').each_line.find do |line|
+ obj = File.open(filename, 'r').readlines.find do |line|
line =~ /"some random string"/
end

0 comments on commit 6c54cd8

Please sign in to comment.