Skip to content

Commit

Permalink
Added: RSpec test suite initial setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
delner committed Jan 12, 2018
1 parent 79ee2d6 commit f2ed64d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
4 changes: 3 additions & 1 deletion ddtrace.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ EOS
spec.add_dependency 'msgpack'

spec.add_development_dependency 'rake', '~> 10.5'
spec.add_development_dependency('rubocop', '= 0.49.1') if RUBY_VERSION >= '2.1.0'
spec.add_development_dependency 'rubocop', '= 0.49.1' if RUBY_VERSION >= '2.1.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rspec-collection_matchers', '~> 1.1'
spec.add_development_dependency 'minitest', '= 5.10.1'
spec.add_development_dependency 'appraisal', '~> 2.2'
spec.add_development_dependency 'yard', '~> 0.9'
Expand Down
20 changes: 20 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'pry'
require 'rspec/collection_matchers'

require 'ddtrace'

RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end

config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end

config.shared_context_metadata_behavior = :apply_to_host_groups
config.disable_monkey_patching!
config.warnings = true
config.order = :random
end

0 comments on commit f2ed64d

Please sign in to comment.