spec/application_spec.rb in rasti-web-0.0.2 vs spec/application_spec.rb in rasti-web-0.0.3
- old
+ new
@@ -46,11 +46,11 @@
it 'Defined route' do
get '/'
last_response.status.must_equal 200
- last_response['Content-Type'].must_equal 'text/html'
+ last_response['Content-Type'].must_equal 'text/html; charset=utf-8'
last_response.body.must_equal 'Page content'
end
it 'Not found' do
get '/not_found'
@@ -68,10 +68,10 @@
it 'Map' do
get '/api/resource/123'
last_response.status.must_equal 200
- last_response['Content-Type'].must_equal 'application/json'
+ last_response['Content-Type'].must_equal 'application/json; charset=utf-8'
last_response.body.must_equal '{"id":123}'
end
end
\ No newline at end of file