Skip to content

Commit

Permalink
Update test dependencies and fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
notalex committed May 10, 2018
1 parent f2cfe6d commit e021127
Show file tree
Hide file tree
Showing 6 changed files with 100 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ config.yaml
doc/build
/coverage/
*.json

.byebug_history
82 changes: 82 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
PATH
remote: .
specs:
ghtorrent (0.12.1)
bunny (~> 2.3, >= 2.3.0)
mongo (~> 2.4, >= 2.4.3)
sequel (~> 4.5, >= 4.5.0)
trollop (~> 2.0, >= 2.0.0)

GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
amq-protocol (2.3.0)
bson (4.3.0)
bunny (2.9.2)
amq-protocol (~> 2.3.0)
byebug (10.0.2)
cause (0.1)
concurrent-ruby (1.0.5)
crack (0.4.3)
safe_yaml (~> 1.0.0)
docile (1.3.0)
faker (1.8.7)
i18n (>= 0.7)
hashdiff (0.3.7)
i18n (1.0.1)
concurrent-ruby (~> 1.0)
influxdb (0.3.5)
cause
json
json (2.1.0)
m (1.5.1)
method_source (>= 0.6.7)
rake (>= 0.9.2.2)
metaclass (0.0.4)
method_source (0.9.0)
minitest (4.7.5)
mocha (1.5.0)
metaclass (~> 0.0.1)
mongo (2.5.1)
bson (>= 4.3.0, < 5.0.0)
mysql2 (0.5.1)
public_suffix (3.0.2)
rake (12.3.1)
safe_yaml (1.0.4)
sequel (4.49.0)
simplecov (0.16.1)
docile (~> 1.1)
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
simplecov-rcov (0.2.3)
simplecov (>= 0.4.1)
trollop (2.1.2)
vcr (4.0.0)
webmock (3.3.0)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff

PLATFORMS
ruby

DEPENDENCIES
byebug
faker
ghtorrent!
influxdb (= 0.3.5)
jdbc-mysql
m (~> 1.5.0)
minitest (~> 4.7.3)
mocha
mysql2
simplecov
simplecov-rcov
vcr
webmock

BUNDLED WITH
1.16.1
3 changes: 3 additions & 0 deletions ghtorrent.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ Gem::Specification.new do |s|
s.add_development_dependency 'mocha'
s.add_development_dependency 'factory_girl'
s.add_development_dependency 'faker'
s.add_development_dependency 'byebug'
s.add_development_dependency 'vcr'
s.add_development_dependency 'webmock'

begin
require 'changelog'
Expand Down
2 changes: 1 addition & 1 deletion lib/ghtorrent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module GHTorrent
require 'ghtorrent/adapters/base_adapter'
require 'ghtorrent/adapters/mongo_persister'
require 'ghtorrent/adapters/noop_persister'
require 'ghtorrent/adapters/csv_persister'
# require 'ghtorrent/adapters/csv_persister'

# Support for retrieving and saving intermediate results
require 'ghtorrent/persister'
Expand Down
3 changes: 3 additions & 0 deletions test/helpers/shared.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def config
@config ||= GHTorrent::Settings::DEFAULTS
end
17 changes: 10 additions & 7 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
require 'simplecov'
require 'simplecov-rcov'
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.start
# SimpleCov.minimum_coverage 96.3
SimpleCov.start
SimpleCov.minimum_coverage 90

require 'vcr'
VCR.configure do |config|
config.cassette_library_dir = 'fixtures/vcr_cassettes'
config.hook_into :webmock
end

require 'minitest/autorun'
require 'ghtorrent'
require 'mocha/mini_test'
require 'mocha/minitest'
require 'webmock/minitest'
require 'factory_girl'
require 'faker'
require 'byebug'
require 'helpers/shared'

FactoryGirl.find_definitions




0 comments on commit e021127

Please sign in to comment.