Skip to content

Commit 0f1de66

Browse files
committed
Fix indentation
1 parent 25b7f24 commit 0f1de66

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/cmab_client_spec.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
expect(result).to eq('abc123')
6868
expect(WebMock).to have_requested(:post, expected_url)
69-
.with(body: expected_body_for_webmock, headers: expected_headers).once
69+
.with(body: expected_body_for_webmock, headers: expected_headers).once
7070
expect(Kernel).not_to have_received(:sleep)
7171
end
7272

@@ -80,7 +80,7 @@
8080
end.to raise_error(Optimizely::CmabFetchError, /Connection error/)
8181

8282
expect(WebMock).to have_requested(:post, expected_url)
83-
.with(body: expected_body_for_webmock, headers: expected_headers).once
83+
.with(body: expected_body_for_webmock, headers: expected_headers).once
8484
expect(spy_logger).to have_received(:log).with(Logger::ERROR, a_string_including('Connection error'))
8585
expect(Kernel).not_to have_received(:sleep)
8686
end
@@ -95,7 +95,7 @@
9595
end.to raise_error(Optimizely::CmabFetchError, /500/)
9696

9797
expect(WebMock).to have_requested(:post, expected_url)
98-
.with(body: expected_body_for_webmock, headers: expected_headers).once
98+
.with(body: expected_body_for_webmock, headers: expected_headers).once
9999
expect(spy_logger).to have_received(:log).with(Logger::ERROR, a_string_including('500'))
100100
expect(Kernel).not_to have_received(:sleep)
101101
end
@@ -110,7 +110,7 @@
110110
end.to raise_error(Optimizely::CmabInvalidResponseError, /Invalid CMAB fetch response/)
111111

112112
expect(WebMock).to have_requested(:post, expected_url)
113-
.with(body: expected_body_for_webmock, headers: expected_headers).once
113+
.with(body: expected_body_for_webmock, headers: expected_headers).once
114114
expect(spy_logger).to have_received(:log).with(Logger::ERROR, a_string_including('Invalid CMAB fetch response'))
115115
expect(Kernel).not_to have_received(:sleep)
116116
end
@@ -125,7 +125,7 @@
125125
end.to raise_error(Optimizely::CmabInvalidResponseError, /Invalid CMAB fetch response/)
126126

127127
expect(WebMock).to have_requested(:post, expected_url)
128-
.with(body: expected_body_for_webmock, headers: expected_headers).once
128+
.with(body: expected_body_for_webmock, headers: expected_headers).once
129129
expect(spy_logger).to have_received(:log).with(Logger::ERROR, a_string_including('Invalid CMAB fetch response'))
130130
expect(Kernel).not_to have_received(:sleep)
131131
end
@@ -143,7 +143,7 @@
143143

144144
expect(result).to eq('abc123')
145145
expect(WebMock).to have_requested(:post, expected_url)
146-
.with(body: expected_body_for_webmock, headers: expected_headers).once
146+
.with(body: expected_body_for_webmock, headers: expected_headers).once
147147
expect(Kernel).not_to have_received(:sleep)
148148
end
149149

@@ -158,7 +158,7 @@
158158

159159
expect(result).to eq('xyz456')
160160
expect(WebMock).to have_requested(:post, expected_url)
161-
.with(body: expected_body_for_webmock, headers: expected_headers).exactly(3).times
161+
.with(body: expected_body_for_webmock, headers: expected_headers).exactly(3).times
162162

163163
expect(spy_logger).to have_received(:log).with(Logger::INFO, 'Retrying CMAB request (attempt 1) after 0.01 seconds...').once
164164
expect(spy_logger).to have_received(:log).with(Logger::INFO, 'Retrying CMAB request (attempt 2) after 0.02 seconds...').once
@@ -182,7 +182,7 @@
182182
end.to raise_error(Optimizely::CmabFetchError)
183183

184184
expect(WebMock).to have_requested(:post, expected_url)
185-
.with(body: expected_body_for_webmock, headers: expected_headers).exactly(4).times
185+
.with(body: expected_body_for_webmock, headers: expected_headers).exactly(4).times
186186

187187
expect(spy_logger).to have_received(:log).with(Logger::INFO, 'Retrying CMAB request (attempt 1) after 0.01 seconds...').once
188188
expect(spy_logger).to have_received(:log).with(Logger::INFO, 'Retrying CMAB request (attempt 2) after 0.02 seconds...').once

0 commit comments

Comments
 (0)