Sha256: b485aa7dc8f316395bdd34b4e5156c31c7b2ff198d95d5196b40630485b8d830

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

require 'helper'

ListValidator = RichEmailValidator::ListValidator

describe ListValidator do

  describe '#filter' do
    let(:list) { get_list('list_fixture.txt') }
    let(:valid_list) { get_list('valid_fixture.txt') }
    it 'returns a list of valid emails' do
      output = ListValidator.new(list).filter
      expect(output).to eq(valid_list)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rich_email_validator-0.0.2 spec/rich_email_validator/list_validator_spec.rb
rich_email_validator-0.0.1 spec/rich_email_validator/list_validator_spec.rb