Sha256: 578c53a1c9fe104dee3406dca46795cf097c40c58b95659224395bbe73bbd2b2
Contents?: true
Size: 499 Bytes
Versions: 49
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' describe LHC::Response do context 'time' do let(:time) { 1.3 } let(:raw_response) { OpenStruct.new(time: time) } it 'provides response time in seconds' do response = LHC::Response.new(raw_response, nil) expect(response.time).to eq time end it 'provides response time in miliseconds' do response = LHC::Response.new(raw_response, nil) expect(response.time_ms).to eq time * 1000 end end end
Version data entries
49 entries across 49 versions & 1 rubygems