Permalink
Browse files

Test hook registration

  • Loading branch information...
1 parent ebe1edd commit 850621ef7f033812a7694de05898f8b41c585256 @fphilipe fphilipe committed Sep 27, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 spec/premailer-rails3/hook_registration_spec.rb
@@ -0,0 +1,10 @@
+require 'spec_helper'
+
+describe 'ActionMailer::Base.register_interceptor' do
+ it 'should register interceptor PremailerRails::Hook' do
+ ActionMailer::Base
+ .expects(:register_interceptor)
+ .with(PremailerRails::Hook)
+ load 'premailer-rails3.rb'
+ end
+end

0 comments on commit 850621e

Please sign in to comment.