lib/async/rspec/profile.rb in async-rspec-1.10.0 vs lib/async/rspec/profile.rb in async-rspec-1.11.0
- old
+ new
@@ -24,11 +24,11 @@
end
begin
require 'ruby-prof'
- RSpec.shared_context Profile do
+ ::RSpec.shared_context Profile do
around(:each) do |example|
profile = RubyProf::Profile.new(merge_fibers: true)
begin
profile.start
@@ -41,10 +41,10 @@
printer.print(STDOUT)
end
end
end
rescue LoadError
- RSpec.shared_context Profile do
+ ::RSpec.shared_context Profile do
before(:all) do
warn "Profiling not enabled/supported."
end
end
end