Sha256: f8953890507105a90e19302ff5b80a629c47341f99b90fd71823385c8625f9d5

Contents?: true

Size: 833 Bytes

Versions: 3

Compression:

Stored size: 833 Bytes

Contents

require 'spec_helper'

describe 'mailer' do
  use_helpers :app, :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'
    puts read_mailer(:account)
    # root_dir.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

3 entries across 3 versions & 1 rubygems

Version Path
rails3_assist-0.2.4 spec/rails3_assist/artifact/mailer/mailer_spec.rb
rails3_assist-0.2.3 spec/rails3_assist/artifact/mailer/mailer_spec.rb
rails3_assist-0.2.2 spec/rails3_assist/artifact/mailer/mailer_spec.rb