From 3cc4326eb7f46f8de229c738c69f3fd0f219b664 Mon Sep 17 00:00:00 2001 From: miha Date: Mon, 29 Mar 2021 10:59:38 +0200 Subject: [PATCH] fix code style --- spec/models/activity_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/models/activity_spec.rb b/spec/models/activity_spec.rb index 689c0435c..7dc06219a 100644 --- a/spec/models/activity_spec.rb +++ b/spec/models/activity_spec.rb @@ -105,24 +105,24 @@ describe Activity, type: :model do end describe '.notifiable?' do context 'Creating notifiable activity' do - let(:activity) do + let(:activity) do create :activity, subject: (create :task_comment), type_of: 'add_comment_to_module', subject_type: 'MyModule' end it 'is notifiable when when creating comment' do - expect(activity.send(:notifiable?)).to be true + expect(activity.__send__(:notifiable?)).to be true end end context 'Creating non-notifiable activity' do - let(:activity) do + let(:activity) do create :activity, subject: (create :my_module), type_of: 'create_module', subject_type: 'MyModule' end it 'is not notifiable when when creating new task' do - expect(activity.send(:notifiable?)).to be false + expect(activity.__send__(:notifiable?)).to be false end end end