Sha256: 30b0d2c6f4eb0ad614eef0bf452af5ee1e6e14b5c1129e6f9ce8decab8b47a8d

Contents?: true

Size: 358 Bytes

Versions: 2

Compression:

Stored size: 358 Bytes

Contents

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

    def set_key
      Rails.application.secrets.emarsys = {
        secret_key: "a",
        user_name: "b"
      }
    end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-emarsys-2.0.1 test/support/workarea/emarsys_api_config.rb
workarea-emarsys-2.0.0 test/support/workarea/emarsys_api_config.rb