Sha256: 88dfa42764b5c1b966c265800cec6e350dc85756bb24ef8dd5aeb27208b7d221
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 Bytes
Contents
require "test_helper" module Workarea module Emarsys class GatewayTest < Workarea::TestCase include EmarsysApiConfig def gateway customer_id = '215861890' Workarea::Emarsys::Gateway.new( Rails.application.secrets.emarsys[:secret_key], Rails.application.secrets.emarsys[:user_name] ) end def test_create_contact VCR.use_cassette("emarsys/add_contact", match_requests_on: [:method, :uri]) do attrs = { contacts: [ "3" => "jyucis-emarsys-test@workarea.com" ] } response = gateway.create_contact(attrs) assert(response.success?) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-emarsys-2.0.1 | test/lib/workarea/emarsys/gateway_test.rb |
workarea-emarsys-2.0.0 | test/lib/workarea/emarsys/gateway_test.rb |