Sha256: af6b0c57236955b24af887aef260bc9e32393ce4524fd6c41fd1d2cb211a60ef

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

require 'mailinator'
require 'email-spec'

class Mailinator
  module Spec
    module Matchers
      include EmailSpec::Matchers
    end

    module Helpers

      def mailinator(email = nil)
        @mailinator ||= begin
                          if email
                            Mailinator.new(email)
                          else
                            Mailinator.mostly_random
                          end
                        end
      end

      def last_mailinator_email
        mailinator.mailbox.last
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mailinator-spec-0.0.1 lib/mailinator/spec.rb