Sha256: 3a4fa06074da6784ec60d59a59495cbf4972a0f0752b2aee5530c3ecfc9686df

Contents?: true

Size: 982 Bytes

Versions: 7

Compression:

Stored size: 982 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'bundler'
Bundler.setup(:development)
require 'mail'
#require 'tmail'
require 'postmark'
require 'active_support'
require 'json'
require 'fakeweb'
require 'fakeweb_matcher'
require 'timecop'
require 'rspec'
require 'rspec/autorun'
require File.join(File.expand_path(File.dirname(__FILE__)), 'shared_examples.rb')

if ENV['JSONGEM']
  # `JSONGEM=Yajl rake spec`
  Postmark.response_parser_class = ENV['JSONGEM'].to_sym
  puts "Setting ResponseParser class to #{Postmark::ResponseParsers.const_get Postmark.response_parser_class}"
end

RSpec.configure do |config|
	config.filter_run_excluding :ruby => lambda { |version|
    RUBY_VERSION.to_s !~ /^#{version.to_s}/
  }
end

RSpec::Matchers.define :be_serialized_to do |json|
  match do |mail_message|
    Postmark.convert_message_to_options_hash(mail_message).should == JSON.parse(json)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
postmark-0.9.19 spec/spec_helper.rb
postmark-0.9.18 spec/spec_helper.rb
postmark-0.9.17 spec/spec_helper.rb
postmark-0.9.16 spec/spec_helper.rb
postmark-0.9.15 spec/spec_helper.rb
postmark-0.9.14 spec/spec_helper.rb
postmark-0.9.13 spec/spec_helper.rb