File: helpers.rb

package info (click to toggle)
ruby-postmark 1.25.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 480 kB
  • sloc: ruby: 5,413; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 259 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
module Postmark
  module RSpecHelpers
    def empty_gif_path
      File.join(File.dirname(__FILE__), '..', 'data', 'empty.gif')
    end

    def encoded_empty_gif_data
      Postmark::MessageHelper.encode_in_base64(File.read(empty_gif_path))
    end
  end
end