Sha256: 3491c9e2b1bb05325af509cc7edc8786de7f2012ed26c549d83a9f428515b672

Contents?: true

Size: 303 Bytes

Versions: 12

Compression:

Stored size: 303 Bytes

Contents

module UnitTests
  module MailerBuilder
    def self.configure_example_group(example_group)
      example_group.include(self)
    end

    def define_mailer(name, paths, &block)
      class_name = name.to_s.pluralize.classify
      define_class(class_name, ActionMailer::Base, &block)
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
shoulda-matchers-3.1.3 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-4.0.0.rc1 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-3.1.2 spec/support/unit/helpers/mailer_builder.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/shoulda-matchers-2.8.0/spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-3.1.1 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-3.1.0 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-3.0.1 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-3.0.0 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-3.0.0.rc1 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-2.8.0 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-2.8.0.rc2 spec/support/unit/helpers/mailer_builder.rb
shoulda-matchers-2.8.0.rc1 spec/support/unit/helpers/mailer_builder.rb