Sha256: d0fb4b88a10cd68006f773da0124bb3a727c005f2f58c704f8bfe361489d3fcc

Contents?: true

Size: 706 Bytes

Versions: 3

Compression:

Stored size: 706 Bytes

Contents

module Workarea
  module MailChimpApiConfig
    def self.included(test)
      super
      test.setup :set_key
      test.teardown :reset_key
    end

    def set_key
      Rails.application.secrets.mail_chimp = { api_key: 'c89583c2b238d7aaa6df3e4307bb68c1-us16' }
    end

    def reset_key
      Rails.application.secrets.delete(:mail_chimp)
    end

    def vcr_args
      @vcr_args ||= { record: :once, match_requests_on: [:method, :uri] }
    end

    private

      def test_store_params
        {
          id: "test_store_1",
          list_id: "fcd2925136",
          name: "test_store_1",
          email_address: "jyucis@weblinc.com",
          currency_code: "USD"
        }
      end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-mail_chimp-3.1.0 test/support/workarea/mail_chimp_api_config.rb
workarea-mail_chimp-3.0.5 test/support/workarea/mail_chimp_api_config.rb
workarea-mail_chimp-3.0.4 test/support/workarea/mail_chimp_api_config.rb