Skip to content

Commit a1df91b

Browse files
committed
Improve spec descriptions
1 parent 8245da4 commit a1df91b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

sentry-ruby/spec/sentry_spec.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,17 +1014,15 @@
10141014
end
10151015

10161016
context "with different sample_rand values" do
1017-
it "correctly propagates various sample_rand values" do
1018-
test_values = [0.000001, 0.123456, 0.500000, 0.999999]
1019-
1020-
test_values.each do |sample_rand_value|
1017+
[0.000001, 0.123456, 0.500000, 0.999999].each do |sample_rand|
1018+
it "correctly propagates sentry-sample_rand=#{sample_rand}" do
10211019
env = {
10221020
"HTTP_SENTRY_TRACE" => "771a43a4192642f0b136d5159a501700-7c51afd529da4a2a-1",
1023-
"HTTP_BAGGAGE" => "sentry-trace_id=771a43a4192642f0b136d5159a501700,sentry-sample_rand=#{sample_rand_value}"
1021+
"HTTP_BAGGAGE" => "sentry-trace_id=771a43a4192642f0b136d5159a501700,sentry-sample_rand=#{sample_rand}"
10241022
}
10251023

10261024
transaction = described_class.continue_trace(env, name: "test")
1027-
expect(transaction.sample_rand).to eq(sample_rand_value)
1025+
expect(transaction.sample_rand).to eq(sample_rand)
10281026
end
10291027
end
10301028
end

0 commit comments

Comments
 (0)