Sha256: 564d5ba4e756598084831af5e80c944194f4d67fe6378ec7fdbce64847075895

Contents?: true

Size: 700 Bytes

Versions: 1

Compression:

Stored size: 700 Bytes

Contents

require 'rubygems'
require 'spec'

require File.dirname(__FILE__) + "/../../ruby-whatcounts"

module ResponseSpecHelper
  
  def mock_success_response
    "SUCCESS: mail will be sent to test@example.com"
  end

  def mock_failure_response
    "FAILURE: Something went wrong"
  end
  
  def mock_invalid_password_response
    "Password (asdf) doesn't match entry for API user credentials in database"
  end
  
end

module RequestSpecHelper
  
  def mock_one_off_message
    test_attrs = {:pwd => 'test', :list_id => 1, :realm => 'test', :format => 1, :to => 'test@test.com', :template_id => 1, :data => {:first => 'Test'}}
    message = mock("message", test_attrs)
    
    return message
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pdsphil-ruby-whatcounts-0.1.0 lib/whatcounts/spec/spec_helper.rb