Test was not in sync with latest changes to prevent duplicate import.

This commit is contained in:
Thorsten Eckel 2016-12-20 16:37:01 +01:00
parent 0d20c9095f
commit bce847d0f4

View file

@ -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