Sha256: abb5f953ea5cf6da7cc17591878b5fb7bf5a2c6c23d57b24c6929788afcc3ecc

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

require 'spec_helper'

describe Idid::Delivery do

  subject { delivery }

  let(:delivery) { Idid::Delivery.new config }
  let(:config) do
    Idid::Configuration.new(
      'project' => 'foo',
      'email' => 'john@example.com',
      'delivery' => { 'method' => :test }
    )
  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

1 entries across 1 versions & 1 rubygems

Version Path
idid-0.0.4 spec/idid/delivery_spec.rb