Sha256: 9289fe379908a16f8c1411c274ec6782a42909c98ff59dfe3973fbb8e82c446b

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper')

describe 'mailer helper' do
  load_helper :mailer

  before :each do              
    create_mailer :account do
      %q{
        def mail_it!
        end
      }
    end    
  end

  after :each do              
    remove_mailer :account
  end
    
  it "should have an account mailer file with a mail_it! method inside" do      
    Rails.application.should have_mailer :account do |file|
      file.should have_method :mail_it!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
generator-spec-0.5.0 spec/generator_spec/matchers/rails/mailer_matcher_spec.rb