File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/generators/rspec/scaffold/templates Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 80
80
post <%= index_helper %>_url,
81
81
params: { <%= ns_file_name %>: invalid_attributes }, headers: valid_headers, as: :json
82
82
expect(response).to have_http_status(:unprocessable_entity)
83
- expect(response.content_type).to eq( "application/json")
83
+ expect(response.content_type).to match(a_string_including( "application/json") )
84
84
end
85
85
end
86
86
end
114
114
patch <%= show_helper.tr('@', '') %>,
115
115
params: { <%= singular_table_name %>: invalid_attributes }, headers: valid_headers, as: :json
116
116
expect(response).to have_http_status(:unprocessable_entity)
117
- expect(response.content_type).to eq( "application/json")
117
+ expect(response.content_type).to match(a_string_including( "application/json") )
118
118
end
119
119
end
120
120
end
You can’t perform that action at this time.
0 commit comments