Sha256: 8f4badb8aff7e9cb525799b2ea2b6f0df57f445a4f4db1ab5073f8787c003ff9

Contents?: true

Size: 239 Bytes

Versions: 44

Compression:

Stored size: 239 Bytes

Contents

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

Version data entries

44 entries across 38 versions & 5 rubygems

Version Path
shoulda-matchers-2.7.0 spec/support/mailer_builder.rb
shoulda-matchers-2.6.2 spec/support/mailer_builder.rb
mcmire-shoulda-matchers-2.6.2.docs.1 spec/support/mailer_builder.rb
mcmire-shoulda-matchers-2.6.1.docs.1 spec/support/mailer_builder.rb
shoulda-matchers-2.6.1 spec/support/mailer_builder.rb
shoulda-matchers-2.6.1.rc2 spec/support/mailer_builder.rb
shoulda-matchers-2.6.1.rc1 spec/support/mailer_builder.rb
shoulda-matchers-2.6.0 spec/support/mailer_builder.rb
mcmire-shoulda-matchers-2.5.0 spec/support/mailer_builder.rb
shoulda-matchers-2.5.0 spec/support/mailer_builder.rb
shoulda-matchers-2.4.0 spec/support/mailer_builder.rb
shoulda-matchers-2.4.0.rc1 spec/support/mailer_builder.rb
shoulda-matchers-2.3.0 spec/support/mailer_builder.rb
challah-1.0.0 vendor/bundle/gems/shoulda-matchers-2.2.0/spec/support/mailer_builder.rb
shoulda-matchers-2.2.0 spec/support/mailer_builder.rb
challah-1.0.0.beta3 vendor/bundle/gems/shoulda-matchers-1.5.6/spec/support/mailer_builder.rb
challah-1.0.0.beta3 vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/mailer_builder.rb
shoulda-matchers-2.1.0 spec/support/mailer_builder.rb
challah-1.0.0.beta2 vendor/bundle/gems/shoulda-matchers-1.5.6/spec/support/mailer_builder.rb
challah-1.0.0.beta vendor/bundle/gems/shoulda-matchers-1.4.2/spec/support/mailer_builder.rb