Sha256: 65b215326d4c6753a15a33d2feef7c4510776b9b9ebda301d032c635577bdfd8

Contents?: true

Size: 315 Bytes

Versions: 9

Compression:

Stored size: 315 Bytes

Contents

require 'spec_helper'

describe Freddy::SyncResponseContainer do
  let(:container) { described_class.new }

  context 'when timeout' do
    subject { container.wait_for_response(0.01) }

    it 'raises timeout error' do
      expect { subject }.to raise_error(Timeout::Error, 'execution expired')
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
freddy-jruby-0.5.1 spec/freddy/sync_response_container_spec.rb
freddy-0.5.1 spec/freddy/sync_response_container_spec.rb
freddy-jruby-0.5.0 spec/freddy/sync_response_container_spec.rb
freddy-0.5.0 spec/freddy/sync_response_container_spec.rb
freddy-jruby-0.4.9 spec/freddy/sync_response_container_spec.rb
freddy-0.4.9 spec/freddy/sync_response_container_spec.rb
freddy-0.4.8 spec/freddy/sync_response_container_spec.rb
freddy-0.4.7 spec/freddy/sync_response_container_spec.rb
freddy-0.4.6 spec/freddy/sync_response_container_spec.rb