Sha256: acacfc63a67aec6990ba55aa156aab81268a8fafba0079c87cf9068628a6d62d

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 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, args)
      subject.message owner, template, args
    end
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
courier-0.1.3 spec/courier/service/gritter_notice_spec.rb
courier-0.1.2 spec/courier/service/gritter_notice_spec.rb