Sha256: 13156e337471f7849d3dcf9c05746df3545df1e9e931737003d4eaa09aa62aa0
Contents?: true
Size: 540 Bytes
Versions: 7
Compression:
Stored size: 540 Bytes
Contents
# -*- coding: utf-8 -*- require 'spec_helper' describe Courier do specify { ActiveRecord::Base.should respond_to(:has_courier)} describe '.init' do specify do should_receive(:some_stub) Courier.init do some_stub end end end describe '.deliver_all!' do it 'should run deliver! for all services' do service = mock_service service.should_receive(:deliver_all!).twice Courier.config.should_receive(:services) { [service, service]} Courier.deliver_all! end end end
Version data entries
7 entries across 7 versions & 1 rubygems