Sha256: 5a5c6a443f1ec0e680a5fbf179a02610da0a29f7dbff20035914ad1dfeaab3da
Contents?: true
Size: 617 Bytes
Versions: 28
Compression:
Stored size: 617 Bytes
Contents
# frozen_string_literal: true require 'sinatra/base' # Fake class for testing response to pushCommand class FakeEvostream < Sinatra::Base get '/pushStream' do json_response 200, :push_stream end get '/createDASHStream' do json_response 200, :create_dash_stream end get '/createHLSStream' do json_response 200, :create_hls_stream end get '/removeConfig' do json_response 200, :remove_config end private def json_response(response_code, file_name) content_type :json status response_code File.open("#{File.dirname(__FILE__)}/fixtures/#{file_name}.json") end end
Version data entries
28 entries across 28 versions & 1 rubygems