Sha256: 624a3c361fc8e2ec1ec6b61e2b58c9a8090c23d6a0b579378b14f54d93fbe88b

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

module Workarea
  module ZendeskApiConfig
    extend ActiveSupport::Concern
    included do
      setup do
        @_old_creds = Rails.application.secrets.zendesk

        Rails.application.secrets.zendesk = {
          api_user_name: "email@example.com",
          api_token: "yourtoken"
        }
      end

      teardown do
        Rails.application.secrets.zendesk = @_old_creds
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-zendesk-1.0.0 test/support/workarea/zendesk_api_config.rb