Skip to content

Commit 15421b5

Browse files
committed
Update specs and use covered.
1 parent 7484af0 commit 15421b5

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

async-http-faraday.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
2121

2222
spec.add_development_dependency "async-rspec", "~> 1.2"
2323

24+
spec.add_development_dependency "covered"
2425
spec.add_development_dependency "bundler"
2526
spec.add_development_dependency "rspec", "~> 3.6"
2627
spec.add_development_dependency "rake"

spec/spec_helper.rb

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
11

2-
if ENV['COVERAGE'] || ENV['TRAVIS']
3-
begin
4-
require 'simplecov'
5-
6-
SimpleCov.start do
7-
add_filter "/spec/"
8-
end
9-
10-
if ENV['TRAVIS']
11-
require 'coveralls'
12-
Coveralls.wear!
13-
end
14-
rescue LoadError
15-
warn "Could not load simplecov: #{$!}"
16-
end
17-
end
18-
19-
require "bundler/setup"
20-
require "async/http"
2+
require 'covered/rspec'
213

224
RSpec.configure do |config|
23-
# Enable flags like --only-failures and --next-failure
24-
config.example_status_persistence_file_path = ".rspec_status"
5+
config.disable_monkey_patching!
6+
7+
# Enable flags like --only-failures and --next-failure
8+
config.example_status_persistence_file_path = ".rspec_status"
259

26-
config.expect_with :rspec do |c|
27-
c.syntax = :expect
28-
end
10+
config.expect_with :rspec do |c|
11+
c.syntax = :expect
12+
end
2913
end

0 commit comments

Comments
 (0)