Add interactor DestroyContactList
This commit is contained in:
parent
acc901e714
commit
8a416a15f0
2 changed files with 16 additions and 0 deletions
9
app/interactors/destroy_contact_list.rb
Normal file
9
app/interactors/destroy_contact_list.rb
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class DestroyContactList
|
||||||
|
include Interactor
|
||||||
|
|
||||||
|
def call
|
||||||
|
context.destroyable_contact_list.destroy!
|
||||||
|
end
|
||||||
|
end
|
7
spec/interactors/destroy_contact_list_spec.rb
Normal file
7
spec/interactors/destroy_contact_list_spec.rb
Normal file
|
@ -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 a new issue