Sha256: 2f99ab0cd0af0758ba4662931ea56ad7bc614d62ef0cb8b66e963920f772dd72

Contents?: true

Size: 455 Bytes

Versions: 9

Compression:

Stored size: 455 Bytes

Contents

require 'spec_helper'

describe RailsBestPractices::Prepares::MailerPrepare do
  let(:runner) { RailsBestPractices::Core::Runner.new(:prepares => RailsBestPractices::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)
    RailsBestPractices::Prepares.mailers.should == ["ProjectMailer"]
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
rails_best_practices-1.1.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.0.1 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-1.0.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-0.10.1 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-0.10.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-raydog153-0.9.1 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-0.9.0 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-0.8.2 spec/rails_best_practices/prepares/mailer_prepare_spec.rb
rails_best_practices-0.8.1 spec/rails_best_practices/prepares/mailer_prepare_spec.rb