spec/lib/helpers.rb in request-log-analyzer-1.8.0 vs spec/lib/helpers.rb in request-log-analyzer-1.8.1
- old
+ new
@@ -51,10 +51,10 @@
end
# Check if a given string can be found in the given file
# Returns the line number if found, nil otherwise
def find_string_in_file(string, file, options = {})
- return nil unless File::exists?(file)
+ return nil unless File.exists?(file)
line_counter = 0
File.open( file ) do |io|
io.each {|line|