|
106 | 106 | expect(result.derivatives).to eq({}) |
107 | 107 | expect(result.duration_ns).to eq(10) |
108 | 108 | expect(result.duration_ext_ns).to be > result.duration_ns |
109 | | - expect(result.input_truncated?).to be false |
| 109 | + expect(result).not_to be_input_truncated |
110 | 110 | end |
111 | 111 |
|
112 | 112 | context 'when WAF::Result#input_truncated? is true' do |
|
126 | 126 | end |
127 | 127 |
|
128 | 128 | it 'returns result with input_trucnated set to true' do |
129 | | - expect(result.input_truncated?).to be true |
| 129 | + expect(result).to be_input_truncated |
130 | 130 | end |
131 | 131 | end |
132 | 132 | end |
|
160 | 160 | expect(result.derivatives).to eq({}) |
161 | 161 | expect(result.duration_ns).to eq(100) |
162 | 162 | expect(result.duration_ext_ns).to be > result.duration_ns |
163 | | - expect(result.input_truncated?).to be false |
| 163 | + expect(result).not_to be_input_truncated |
164 | 164 | end |
165 | 165 |
|
166 | 166 | context 'when WAF::Result#input_truncated? is true' do |
|
172 | 172 | end |
173 | 173 |
|
174 | 174 | it 'returns result with input_trucnated set to true' do |
175 | | - expect(result.input_truncated?).to be true |
| 175 | + expect(result).to be_input_truncated |
176 | 176 | end |
177 | 177 | end |
178 | 178 | end |
|
205 | 205 | end |
206 | 206 |
|
207 | 207 | it 'returns result with input_trucnated set to true' do |
208 | | - expect(waf_result.input_truncated?).to be true |
| 208 | + expect(waf_result).to be_input_truncated |
209 | 209 | end |
210 | 210 | end |
211 | 211 | end |
|
228 | 228 |
|
229 | 229 | expect(run_result).to be_kind_of(Datadog::AppSec::SecurityEngine::Result::Error) |
230 | 230 | expect(run_result.duration_ext_ns).to be > 0 |
231 | | - expect(run_result.input_truncated?).to be false |
| 231 | + expect(run_result).not_to be_input_truncated |
232 | 232 | end |
233 | 233 | end |
234 | 234 | end |
|
0 commit comments