fixup! Fix failing tests

This commit is contained in:
Urban Rotnik 2019-03-15 11:12:10 +01:00
parent 2ea2700837
commit 5dccdbab17

View file

@ -108,13 +108,13 @@ class ExperimentsController < ApplicationController
experiment_annotation_notification(old_text)
activity_type_of = if experiment_params[:archived] == 'false'
activity_type = if experiment_params[:archived] == 'false'
:restore_experiment
else
:edit_experiment
end
Activities::CreateActivityService
.call(activity_type: activity_type_of,
.call(activity_type: activity_type,
owner: current_user,
subject: @experiment,
project: @experiment.project,