Add interactor DestroyContactList
This commit is contained in:
parent
acc901e714
commit
8a416a15f0
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class DestroyContactList
|
||||
include Interactor
|
||||
|
||||
def call
|
||||
context.destroyable_contact_list.destroy!
|
||||
end
|
||||
end
|
|
@ -0,0 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe DestroyContactList do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Reference in New Issue