Sha256: 71a68a7a29347ee0b4dabf6380297afa39a3fa50fc4a7bb069b0a4fbfad28810
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe 'mailer' do load_helper :mailer before :each do remove_mailer :account create_mailer :account do %q{ def index end } end end after :each do # remove_mailer :account end it "should have an account_mailer file that contains an index method and two inserted comments" do insert_into_mailer :account, :content => '# hello' insert_into_mailer :account do '# goodbye' end read_mailer(:account).should have_comment 'hello' Rails.application.should have_mailer :account do |mailer_file| mailer_file.should have_method :index mailer_file.should have_comment 'hello' mailer_file.should have_comment 'goodbye' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.5.0 | spec/generator_spec/rails_helpers/rails_mailer_spec.rb |