Sha256: d49804934e3dcf9f000f6aaa6a8e47734930aeef24614a2c128f08641087a7bb
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') describe 'mailer helper' do include RSpec::Rails::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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.4.8 | spec/generator_spec/matchers/rails/mailer_matcher_spec.rb |
generator-spec-0.4.7 | spec/generator_spec/matchers/rails/mailer_matcher_spec.rb |