Skip to content
Extraits de code Groupes Projets
Valider 9dce7eab rédigé par Sarah Mei's avatar Sarah Mei
Parcourir les fichiers

Fix logging shared behavior

parent ba9df599
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -49,14 +49,14 @@ shared_examples_for 'it overrides the logs on success' do ...@@ -49,14 +49,14 @@ shared_examples_for 'it overrides the logs on success' do
@line.include?("status=200").should be_true @line.include?("status=200").should be_true
end end
it 'logs the controller' do it 'logs the controller' do
@line.include?("controller='#{controller.class.name}'").should be_true @line.include?("controller=\"#{controller.class.name}\"").should be_true
end end
it 'logs the action' do it 'logs the action' do
@line.include?("action='#{@action}'").should be_true @line.include?("action=\"#{@action}\"").should be_true
end end
it 'logs params' do it 'logs params' do
if @action_params if @action_params
@line.include?("params='#{@action_params.inspect.gsub(" ", "")}'").should be_true @line.include?("params=\"#{@action_params.inspect.gsub(" ", "").gsub("\"", "\\\"")}\"").should be_true
end end
end end
it 'logs the view rendering time addition' do it 'logs the view rendering time addition' do
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter