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