Sha256: 973ac372171f3644e47706659b2bd77e3cf898bd83ac55e0a2a110f27b33c5b8

Contents?: true

Size: 462 Bytes

Versions: 17

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

module RailsBestPractices
  module Prepares
    describe MailerPrepare do
      let(:runner) { Core::Runner.new(prepares: MailerPrepare.new) }

      it "should parse mailer names" do
        content =<<-EOF
        class ProjectMailer < ActionMailer::Base
        end
        EOF
        runner.prepare('app/mailers/project_mailer.rb', content)
        Prepares.mailers.map(&:to_s).should == ["ProjectMailer"]
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails_best_practices-1.14.4 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.14.3 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.14.2 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.14.1 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.14.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.13.8 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.13.5 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.13.4 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.13.3 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.13.2 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.13.1 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.13.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.12.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.11.1 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.11.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.10.1 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.10.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb