Sha256: f24eb253f0c002c5acbdf7326bc374df994cebddf7cf30feceeaf5ff747d5c9e

Contents?: true

Size: 320 Bytes

Versions: 10

Compression:

Stored size: 320 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

10 entries across 10 versions & 1 rubygems

Version Path
lhc-3.4.0 spec/response/time_spec.rb
lhc-3.3.0 spec/response/time_spec.rb
lhc-3.2.0 spec/response/time_spec.rb
lhc-3.1.1 spec/response/time_spec.rb
lhc-3.1.0 spec/response/time_spec.rb
lhc-3.0.0 spec/response/time_spec.rb
lhc-2.0.0 spec/response/time_spec.rb
lhc-1.2.0 spec/response/time_spec.rb
lhc-1.1.0 spec/response/time_spec.rb
lhc-0.2.1 spec/response/time_spec.rb