Sha256: 68a44ef12cbc13557a4647544152ac1be5b0187b87323919de0b146252c4e718

Contents?: true

Size: 318 Bytes

Versions: 31

Compression:

Stored size: 318 Bytes

Contents

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 milliseconds' do
      response = LHC::Response.new(raw_response, nil)
      expect(response.time).to eq time * 1000
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
lhc-6.5.0 spec/response/time_spec.rb
lhc-6.4.0 spec/response/time_spec.rb
lhc-6.3.1 spec/response/time_spec.rb
lhc-6.3.0 spec/response/time_spec.rb
lhc-6.2.0 spec/response/time_spec.rb
lhc-6.1.3 spec/response/time_spec.rb
lhc-6.1.2 spec/response/time_spec.rb
lhc-6.1.1 spec/response/time_spec.rb
lhc-6.1.0 spec/response/time_spec.rb
lhc-6.0.1 spec/response/time_spec.rb
lhc-6.0.0 spec/response/time_spec.rb
lhc-5.1.1 spec/response/time_spec.rb
lhc-5.1.0 spec/response/time_spec.rb
lhc-5.0.3 spec/response/time_spec.rb
lhc-5.0.2 spec/response/time_spec.rb
lhc-5.0.1 spec/response/time_spec.rb
lhc-5.0.0 spec/response/time_spec.rb
lhc-4.0.2 spec/response/time_spec.rb
lhc-4.0.1 spec/response/time_spec.rb
lhc-4.0.0 spec/response/time_spec.rb