Sha256: 4e565e6f43cceb258b51507906ecee374d54e1a40651a43a3c18caeb3c54dfa4

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

# -*- coding: utf-8 -*-
require 'spec_helper'

describe Courier::Service::GritterNotice do
  describe '#message' do
    it 'send message to gritter_notice' do
      args={:a=>1}
      owner = double
      template = double :name=>:template_key
      owner.should_receive(:gritter_notice).with(template.name, "translation missing: en.courier.gritter_notice.template_key")
      subject.message owner, template, args
    end
  end

  describe '#deliver!' do
    it 'do nothing' do
      subject.deliver!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
courier-0.1.4 spec/courier/service/gritter_notice_spec.rb