Test was not in sync with latest changes to prevent duplicate import.
This commit is contained in:
parent
0d20c9095f
commit
bce847d0f4
1 changed files with 2 additions and 3 deletions
|
@ -10,10 +10,9 @@ RSpec.describe Import::Zendesk::Ticket::Comment::AttachmentFactory do
|
|||
expect(described_class).to receive(:pre_import_hook)
|
||||
expect(described_class).to receive(:post_import_hook)
|
||||
record = double()
|
||||
local_article = double()
|
||||
local_article = double(attachments: [])
|
||||
expect(Class).to receive(:new).with(record, local_article)
|
||||
parameter = double()
|
||||
expect(parameter).to receive(:each).and_yield(record)
|
||||
parameter = [record]
|
||||
described_class.import(parameter, local_article)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue