Sha256: 9f601852ee3b138e27a01f50feb611a180bb21ea873197d8eb313f45cbc8741a

Contents?: true

Size: 334 Bytes

Versions: 4

Compression:

Stored size: 334 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"
      }
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-emarsys-1.0.4 test/support/workarea/emarsys_api_config.rb
workarea-emarsys-1.1.0 test/support/workarea/emarsys_api_config.rb
workarea-emarsys-1.0.3 test/support/workarea/emarsys_api_config.rb
workarea-emarsys-1.0.2 test/support/workarea/emarsys_api_config.rb