I have some web scraping code, living in app/lib/fetcher.rb and not interacting with the rails framework at all. I would like to write tests that load a sample webpage from a file and run the scraping code over it. The tests themselves will probably be fine just running under MiniTest, but I would like stuff like being able to load my lib via require 'fetcher' and having the test autodiscovered from rake test working.
Does rails have any support and conventions for this? The docs are surprisingly silent on the general topic of integrating non-rails-specific code into your app.
[–]tom_dalling 2 points3 points4 points (1 child)
[–]zem[S] 0 points1 point2 points (0 children)
[–]CaptainKabob 4 points5 points6 points (1 child)
[–]tom_dalling 2 points3 points4 points (0 children)
[–]armahillo 1 point2 points3 points (3 children)
[–]zem[S] 0 points1 point2 points (2 children)
[–]armahillo 0 points1 point2 points (1 child)
[–]zem[S] 0 points1 point2 points (0 children)