stub_fetch_devices

in spec/appcenter_stub.rb [35:45]


def stub_fetch_devices(owner_name:, app_name:, distribution_group:)
  stub_request(:get, "https://api.appcenter.ms/v0.1/apps/#{owner_name}/#{app_name}/distribution_groups/#{ERB::Util.url_encode(distribution_group)}/devices/download_devices_list")
    .to_return(
      status: 200,
      headers: { 'Content-Type' => 'text/csv; charset=utf-8' },
      body: "Device ID\tDevice Name\n
      1234567890abcdefghij1234567890abcdefghij\tDevice 1 - iPhone X\n
      abcdefghij1234567890abcdefghij1234567890\tDevice 2 - iPhone XS\n"
    )
end