1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00
thoughtbot--shoulda-matchers/spec/support/mailer_builder.rb
2012-06-29 15:33:39 -05:00

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