Skip to content

Commit

Permalink
Merge pull request #4 from everypolitician-scrapers/add-test-framework
Browse files Browse the repository at this point in the history
Add test framework
  • Loading branch information
tmtmtmtm committed Feb 14, 2017
2 parents af99880 + 43b64a6 commit ac1c2f9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
@@ -1,6 +1,11 @@
# frozen_string_literal: true
require 'rubocop/rake_task'
require 'rake/testtask'

RuboCop::RakeTask.new

task default: %w(rubocop)
Rake::TestTask.new do |t|
t.test_files = FileList['test/**/*_test.rb']
end

task default: %w(test rubocop)
11 changes: 11 additions & 0 deletions test/test_helper.rb
@@ -0,0 +1,11 @@
# 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

0 comments on commit ac1c2f9

Please sign in to comment.