require 'spec_helper' describe name_from_filename do include_examples 'path_extractor' def results [ 'http://test.com', 'test.com', 'http://test2.com' ] end def text <<-HTML HTML end easy_test end