|
23 | 23 | transaction.finish
|
24 | 24 |
|
25 | 25 | expect(transport.events.count).to eq(1)
|
26 |
| - cache_transaction = transport.events.first.to_hash |
| 26 | + cache_transaction = transport.events.first.to_h |
27 | 27 | expect(cache_transaction[:type]).to eq("transaction")
|
28 | 28 |
|
29 | 29 | expect(cache_transaction[:spans].count).to eq(1)
|
|
45 | 45 |
|
46 | 46 | expect(Rails.cache.read("my_cache_key")).to eq(1)
|
47 | 47 | expect(transport.events.count).to eq(1)
|
48 |
| - cache_transaction = transport.events.first.to_hash |
| 48 | + cache_transaction = transport.events.first.to_h |
49 | 49 | expect(cache_transaction[:type]).to eq("transaction")
|
50 | 50 | expect(cache_transaction[:spans].count).to eq(1)
|
51 | 51 | expect(cache_transaction[:spans][0][:op]).to eq("cache.put")
|
|
64 | 64 | transaction.finish
|
65 | 65 |
|
66 | 66 | expect(transport.events.count).to eq(1)
|
67 |
| - cache_transaction = transport.events.first.to_hash |
| 67 | + cache_transaction = transport.events.first.to_h |
68 | 68 | expect(cache_transaction[:type]).to eq("transaction")
|
69 | 69 | expect(cache_transaction[:spans].count).to eq(1)
|
70 | 70 | expect(cache_transaction[:spans][0][:op]).to eq("cache.put")
|
|
79 | 79 | transaction.finish
|
80 | 80 |
|
81 | 81 | expect(transport.events.count).to eq(1)
|
82 |
| - cache_transaction = transport.events.first.to_hash |
| 82 | + cache_transaction = transport.events.first.to_h |
83 | 83 | expect(cache_transaction[:type]).to eq("transaction")
|
84 | 84 | expect(cache_transaction[:spans].count).to eq(1)
|
85 | 85 | expect(cache_transaction[:spans][0][:op]).to eq("cache.get")
|
|
95 | 95 | transaction.finish
|
96 | 96 |
|
97 | 97 | expect(transport.events.count).to eq(1)
|
98 |
| - cache_transaction = transport.events.first.to_hash |
| 98 | + cache_transaction = transport.events.first.to_h |
99 | 99 | expect(cache_transaction[:type]).to eq("transaction")
|
100 | 100 | expect(cache_transaction[:spans].count).to eq(1)
|
101 | 101 | expect(cache_transaction[:spans][0][:op]).to eq("cache.get")
|
|
112 | 112 | transaction.finish
|
113 | 113 |
|
114 | 114 | expect(transport.events.count).to eq(1)
|
115 |
| - cache_transaction = transport.events.first.to_hash |
| 115 | + cache_transaction = transport.events.first.to_h |
116 | 116 | expect(cache_transaction[:type]).to eq("transaction")
|
117 | 117 | expect(cache_transaction[:spans].count).to eq(2)
|
118 | 118 | expect(cache_transaction[:spans][1][:op]).to eq("cache.flush")
|
|
130 | 130 |
|
131 | 131 | transaction.finish
|
132 | 132 | expect(transport.events.count).to eq(1)
|
133 |
| - cache_transaction = transport.events.first.to_hash |
| 133 | + cache_transaction = transport.events.first.to_h |
134 | 134 | expect(cache_transaction[:type]).to eq("transaction")
|
135 | 135 | expect(cache_transaction[:spans].count).to eq(2)
|
136 | 136 | expect(cache_transaction[:spans][0][:op]).to eq("cache.get")
|
|
152 | 152 |
|
153 | 153 | transaction.finish
|
154 | 154 | expect(transport.events.count).to eq(1)
|
155 |
| - cache_transaction = transport.events.first.to_hash |
| 155 | + cache_transaction = transport.events.first.to_h |
156 | 156 | expect(cache_transaction[:type]).to eq("transaction")
|
157 | 157 | expect(cache_transaction[:spans].count).to eq(1)
|
158 | 158 | expect(cache_transaction[:spans][0][:op]).to eq("cache.remove")
|
|
0 commit comments