Sha256: a5f9d464d5d82d0e73b4ccbca02ceb61995d3315f9d21f11a35f9d2b502a64e4
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 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) expect(Prepares.mailers.map(&:to_s)).to eq(['ProjectMailer']) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_best_practices-1.19.1 | spec/rails_best_practices/prepares/mailer_prepare_spec.rb |