I have this at the top of the file:
parser_spec.rb:
require File.dirname(__FILE__) + '/parser.rb'
Which has a class inside:
parser.rb:
class Scraper
def scrape_department(file)
Both files are in the rails/project
folder.
How to do it so that I can include that file by just doing require 'parser'
?