Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 092c3dd

Browse files
committed
共通文言の表示確認テストをrequestspecに追加
1 parent c0d871a commit 092c3dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/requests/errors_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,23 @@
99
get '/does_not_exist'
1010
end
1111
expect(response.status).to eq(404)
12+
expect(response.body).to include("子どものためのプログラミング道場")
1213
end
1314

1415
it 'renders the 422 error page' do
1516
with_exceptions_app do
1617
get '/trigger_422'
1718
end
1819
expect(response.status).to eq(422)
20+
expect(response.body).to include("子どものためのプログラミング道場")
1921
end
2022

2123
it 'renders the 500 error page' do
2224
with_exceptions_app do
2325
get '/trigger_500'
2426
end
2527
expect(response.status).to eq(500)
28+
expect(response.body).to include("子どものためのプログラミング道場")
2629
end
2730
end
2831
end

0 commit comments

Comments
 (0)