Sha256: 16ed224329c148f9419d2eea4dfba69721e7f421e2428995636a0db02e289139

Contents?: true

Size: 685 Bytes

Versions: 3

Compression:

Stored size: 685 Bytes

Contents

require 'test_helper'

module Workarea
  module Admin
    class EmarsysConfigurationIntegrationTest < Workarea::IntegrationTest
      include Admin::IntegrationTest

      def test_create_configuration
        patch admin.emarsys_configuration_path,
             params: {
               customer_id: '12345',
               merchant_id: 'ABCDEFG',
               production: true
             }

        assert_equal(1, Workarea::Emarsys::Configuration.count)

        result = Workarea::Emarsys::Configuration.current
        assert_equal('12345', result.customer_id)
        assert_equal('ABCDEFG', result.merchant_id)
        assert(result.production?)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-emarsys-1.0.4 test/integration/workarea/admin/emarsys_configuration_integration_test.rb
workarea-emarsys-1.0.3 test/integration/workarea/admin/emarsys_configuration_integration_test.rb
workarea-emarsys-1.0.2 test/integration/workarea/admin/emarsys_configuration_integration_test.rb