mirror of
https://github.com/thoughtbot/shoulda-matchers.git
synced 2022-11-09 12:01:38 -05:00
10 lines
239 B
Ruby
10 lines
239 B
Ruby
module MailerBuilder
|
|
def define_mailer(name, paths, &block)
|
|
class_name = name.to_s.pluralize.classify
|
|
define_class(class_name, ActionMailer::Base, &block)
|
|
end
|
|
end
|
|
|
|
RSpec.configure do |config|
|
|
config.include MailerBuilder
|
|
end
|