Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit53712f1

Browse files
committed
Add spec for reason phrase
1 parent337382f commit53712f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎spec/response_spec.rb‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
end
201201

202202
describe'response unboxing'do
203-
subject{described_class.new(status:200,response_headers:{},body:'Hi!')}
203+
subject{described_class.new(status:200,response_headers:{},body:'Hi!',reason_phrase:'Success')}
204204

205205
let(:env){{method::get}}
206206
let(:response){subject.to_response(env)}
@@ -224,6 +224,10 @@
224224
it'merges the body'do
225225
expect(response.body).toeq('Hi!')
226226
end
227+
228+
it'merges the reason phrase'do
229+
expect(response.reason_phrase).toeq('Success')
230+
end
227231
end
228232

229233
describe'remove age before caching and normalize max-age if non-zero age present'do

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp