Sha256: a18317db22c2bb7bc3c12a49241cbfabca0be5ac99c6a8a3faf5fa382df229e7

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

require 'spec_helper'

describe Idid::Delivery do

  subject { delivery }

  let(:delivery) { Idid::Delivery.new config }
  let(:config) do
    Idid::Configuration.new(
      'team' => 'foo',
      'email' => 'john@example.com',
      'delivery' => { 'method' => :test },
      'account_type' => 'team'
    )
  end

  its('config') { should eq config }

  describe "#email" do
    subject { delivery.email 'Tested Idid::Deliver.email' }
    its(:to) { should eq ['foo@team.idonethis.com'] }
    its(:from) { should eq ['john@example.com'] }
    its(:body) { should eq 'Tested Idid::Deliver.email' }
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
idid-0.1.0 spec/idid/delivery_spec.rb
idid-0.0.5 spec/idid/delivery_spec.rb