Sha256: e11519e5c069d152927bc51dd5ac60dc56766761b54016f7a329d27c7ba9b313

Contents?: true

Size: 546 Bytes

Versions: 8

Compression:

Stored size: 546 Bytes

Contents

require 'spec_helper'

describe Reparty::Email do
  describe "provides variables" do
    let(:klass) { subject.class }

    let(:from)  { "test@test.com" }
    let(:subj)  { "Test Subject" }
    let(:title) { "Test Title" }

    before do
      Reparty.config do |config|
        config.from = from
        config.subject = subj
        config.title = title
      end
    end

    it { klass.from.should eq(from) }
    it { klass.subject.should eq(subj) }
    it { klass.title.should eq(title) }
    it { klass.reports.should be_empty }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
reparty-0.5.2 spec/email_spec.rb
reparty-0.5.1 spec/email_spec.rb
reparty-0.5.0 spec/email_spec.rb
reparty-0.3.2 spec/email_spec.rb
reparty-0.3.1 spec/email_spec.rb
reparty-0.2.1 spec/email_spec.rb
reparty-0.2.0 spec/email_spec.rb
reparty-0.1.3 spec/email_spec.rb