mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to spec/*
This commit is contained in:
@@ -6,9 +6,7 @@ RSpec.describe MethodProfiler do
|
||||
end
|
||||
|
||||
def recurse(count = 5)
|
||||
if count > 0
|
||||
recurse(count - 1)
|
||||
end
|
||||
recurse(count - 1) if count > 0
|
||||
end
|
||||
end
|
||||
|
||||
@@ -29,11 +27,13 @@ RSpec.describe MethodProfiler do
|
||||
Sneetch.new.beach
|
||||
data = MethodProfiler.transfer
|
||||
result = nil
|
||||
Thread.new do
|
||||
MethodProfiler.start(data)
|
||||
Sneetch.new.beach
|
||||
result = MethodProfiler.stop
|
||||
end.join
|
||||
Thread
|
||||
.new do
|
||||
MethodProfiler.start(data)
|
||||
Sneetch.new.beach
|
||||
result = MethodProfiler.stop
|
||||
end
|
||||
.join
|
||||
|
||||
expect(result[:at_beach][:calls]).to eq(2)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user