trabajo-afectivo/spec/lib/import/base_spec.rb

27 lines
545 B
Ruby
Raw Normal View History

require 'rails_helper'
require 'lib/import/import_job_backend_examples'
RSpec.describe Import::Base do
it_behaves_like 'ImportJob backend'
describe '#queueable?' do
it 'returns true by default' do
expect(described_class.queueable?).to be true
end
end
describe '.start' do
it 'raises an error if called and not overwritten' do
import_job = create(:import_job)
instance = described_class.new(import_job)
expect do
instance.start
end.to raise_error(RuntimeError)
end
end
end