Sha256: 883a9196b99fbd470fe9285c102ecee652f369321a1b6892c0fb140300c3b894
Contents?: true
Size: 650 Bytes
Versions: 22
Compression:
Stored size: 650 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Zizia::TitleValidator do subject(:validator) { described_class.new } let(:invalid_parser) do FakeParser.new(file: [{ 'title' => 'moomin' }, {}, {}]) end it_behaves_like 'a Zizia::Validator' do let(:valid_parser) { FakeParser.new(file: [{ 'title' => 'moomin' }]) } end describe '#validate' do it 'populates errors for records with missing titles' do expect(validator.validate(parser: invalid_parser)) .to contain_exactly(an_instance_of(described_class::Error), an_instance_of(described_class::Error)) end end end
Version data entries
22 entries across 22 versions & 1 rubygems