Sha256: 7ad86481c3f6c0325025e459e5cb115710e2a8a666828904a3ab9438f34cef23

Contents?: true

Size: 1002 Bytes

Versions: 18

Compression:

Stored size: 1002 Bytes

Contents

# frozen_string_literal: true

# we only want this file to monkey-patch zat when we shell out to it, but cucumber automatically requires it as well.
unless defined?(Cucumber)

  require 'webmock'

  WebMock::API.stub_request(:post, 'https://app-account.zendesk.com/api/v2/apps/uploads.json').to_return(body: JSON.dump(id: '123'))
  WebMock::API.stub_request(:post, 'https://app-account.zendesk.com/api/apps.json').with(body: JSON.dump(name: 'John Test App', upload_id: '123')).to_return(body: JSON.dump(job_id: '987'))
  WebMock::API.stub_request(:get, 'https://app-account.zendesk.com/api/v2/apps/job_statuses/987').to_return(body: JSON.dump(status: 'working')).then.to_return(body: JSON.dump(status: 'completed', app_id: '55'))
  WebMock::API.stub_request(:get, 'https://rubygems.org/api/v1/gems/zendesk_apps_tools.json').to_return(body: JSON.dump(status: 'working')).then.to_return(body: JSON.dump(name: 'zendesk_apps_tools', version: '2.1.1'))

  WebMock.enable!
  WebMock.disable_net_connect!
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
zendesk_apps_tools-2.9.3 features/support/webmock.rb
zendesk_apps_tools-2.9.2 features/support/webmock.rb
zendesk_apps_tools-2.9.1 features/support/webmock.rb
zendesk_apps_tools-2.9.0 features/support/webmock.rb
zendesk_apps_tools-2.8.4 features/support/webmock.rb
zendesk_apps_tools-2.8.3 features/support/webmock.rb
zendesk_apps_tools-2.8.2 features/support/webmock.rb
zendesk_apps_tools-2.8.1 features/support/webmock.rb
zendesk_apps_tools-2.8.0 features/support/webmock.rb
zendesk_apps_tools-2.7.1 features/support/webmock.rb
zendesk_apps_tools-2.7.0 features/support/webmock.rb
zendesk_apps_tools-2.6.0 features/support/webmock.rb
zendesk_apps_tools-2.5.2 features/support/webmock.rb
zendesk_apps_tools-2.5.0 features/support/webmock.rb
zendesk_apps_tools-2.4.0 features/support/webmock.rb
zendesk_apps_tools-2.3.0 features/support/webmock.rb
zendesk_apps_tools-2.2.1 features/support/webmock.rb
zendesk_apps_tools-2.2.0 features/support/webmock.rb