DEV: Apply syntax_tree formatting to spec/*

This commit is contained in:
David Taylor
2023-01-09 11:18:21 +00:00
parent 0cf6421716
commit cb932d6ee1
907 changed files with 58693 additions and 45909 deletions

View File

@@ -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