diff --git a/Rakefile b/Rakefile index de12343c..5185385d 100644 --- a/Rakefile +++ b/Rakefile @@ -5,6 +5,10 @@ require 'rake/testtask' RuboCop::RakeTask.new +Rake::TestTask.new do |t| + t.test_files = FileList['test/**/*_test.rb'] +end + require 'scraper_test' ScraperTest::RakeTask.new.install_tasks diff --git a/test/dummy_test.rb b/test/dummy_test.rb new file mode 100644 index 00000000..1a940734 --- /dev/null +++ b/test/dummy_test.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +require_relative './test_helper' + +describe 'dummy test' do + it 'should run' do + # This test is included to ensure that + # test_helper is run by Travis + end +end diff --git a/test/test_helper.rb b/test/test_helper.rb new file mode 100644 index 00000000..0ac338fd --- /dev/null +++ b/test/test_helper.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +require 'minitest/around/spec' +require 'minitest/autorun' +require 'pry' +require 'vcr' +require 'webmock' + +VCR.configure do |c| + c.cassette_library_dir = 'test/cassettes' + c.hook_into :webmock +end