Sha256: d131a3da84030f1bfcfa85ee81c7d0ada9ed5de71a22ffbca401e82566f0044f

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

require 'spec_helper'

describe MailyHerald::SequenceMailing do
  before(:each) do
    @sequence = MailyHerald.sequence(:newsletters)
    @mailing = @sequence.mailings.first
  end

  describe "Validations" do
    it do
      @mailing.absolute_delay = nil
      expect(@mailing).not_to be_valid

      @mailing.absolute_delay = ""
      expect(@mailing).not_to be_valid
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
maily_herald-0.9.4 spec/models/maily_herald/sequence_mailing_spec.rb
maily_herald-0.9.3 spec/models/maily_herald/sequence_mailing_spec.rb
maily_herald-0.9.2 spec/models/maily_herald/sequence_mailing_spec.rb
maily_herald-0.9.1 spec/models/maily_herald/sequence_mailing_spec.rb