Rspec test for correct file search

I wrote a method to locate the file on a given within a directory, the
name and line in it. How to test it? Tell me please, I have daily
headache with this problem…

def search(dir,name,line)


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs