async-dns 1.2.3 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb DELETED
@@ -1,57 +0,0 @@
1
-
2
- if ENV['COVERAGE'] || ENV['TRAVIS']
3
- begin
4
- require 'simplecov'
5
-
6
- SimpleCov.start do
7
- add_filter "/spec/"
8
- end
9
-
10
- # Work correctly across forks:
11
- pid = Process.pid
12
- SimpleCov.at_exit do
13
- SimpleCov.result.format! if Process.pid == pid
14
- end
15
-
16
- if ENV['TRAVIS']
17
- require 'coveralls'
18
- Coveralls.wear!
19
- end
20
- rescue LoadError
21
- warn "Could not load simplecov: #{$!}"
22
- end
23
- end
24
-
25
- require "bundler/setup"
26
- require "async/rspec"
27
- require "async/dns"
28
-
29
- begin
30
- require 'ruby-prof'
31
-
32
- RSpec.shared_context "profile" do
33
- around(:each) do |example|
34
- profile = RubyProf.profile(merge_fibers: true) do
35
- example.run
36
- end
37
-
38
- printer = RubyProf::FlatPrinter.new(profile)
39
- printer.print(STDOUT)
40
- end
41
- end
42
- rescue LoadError
43
- RSpec.shared_context "profile" do
44
- before(:all) do
45
- puts "Profiling not supported on this platform."
46
- end
47
- end
48
- end
49
-
50
- RSpec.configure do |config|
51
- # Enable flags like --only-failures and --next-failure
52
- config.example_status_persistence_file_path = ".rspec_status"
53
-
54
- config.expect_with :rspec do |c|
55
- c.syntax = :expect
56
- end
57
- end