diff --git a/spec/active_record/events_spec.rb b/spec/active_record/events_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/active_record/events_spec.rb
+++ b/spec/active_record/events_spec.rb
@@ -42,17 +42,9 @@ RSpec.describe ActiveRecord::Events do
       expect(Task.not_completed).to include(task)
     end
 
-    it 'allows overriding methods defined by the gem' do
-      task.class.class_eval do
-        def complete
-          super
-        end
-      end
-
-      task.complete
-
+    it 'allows overriding methods' do
+      task.complete!
       expect(task.completed?).to eq(true)
-      expect(task.not_completed?).to eq(false)
     end
   end
 
diff --git a/spec/dummy/app/models/task.rb b/spec/dummy/app/models/task.rb
index <HASH>..<HASH> 100644
--- a/spec/dummy/app/models/task.rb
+++ b/spec/dummy/app/models/task.rb
@@ -1,3 +1,9 @@
 class Task < ActiveRecord::Base
   has_event :complete
+
+  def complete!
+    super
+    logger = Logger.new(STDOUT)
+    logger.info("Task #{id} has been completed")
+  end
 end
Override the complete! task method