Skip to content

Commit

Permalink
Test hook registration
Browse files Browse the repository at this point in the history
  • Loading branch information
fphilipe committed Sep 29, 2011
1 parent ebe1edd commit 850621e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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.