Sha256: 0c8749372e9fd09f354efe073d4ed37ddb3ece96f41d06757a85a61204bfddc9
Contents?: true
Size: 586 Bytes
Versions: 14
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true require 'webmock/rspec' # Fake class for testing response to pushCommand class FakeEvostream def self.request WebMock::API.stub_request(:any, /server_stream.local/) end def self.push_stream request.to_return(json_response(:push_stream)) end def self.remove_config request.to_return(json_response(:remove_config)) end def self.json_response(file_name) { status: 200, headers: { 'Content-Type': 'application/json' }, body: File.open("#{File.dirname(__FILE__)}/fixtures/#{file_name}.json") } end end
Version data entries
14 entries across 14 versions & 1 rubygems