Sha256: 02a07989e34296fa8d23dceae27cc322943672e8c19266ec0b764e5ea57542f1
Contents?: true
Size: 496 Bytes
Versions: 7
Compression:
Stored size: 496 Bytes
Contents
require 'spec_helper' describe Vx::Lib::Consumer::Session do let(:sess) { described_class.new } subject { sess } after do sess.close end it { should be } it "should successfuly open connection" do expect { sess.open }.to change(sess, :open?).to(true) end it "should successfuly open connection in multithread environment" do (0..10).map do |n| Thread.new do sess.open end end.map(&:value) expect(sess).to be_open end end
Version data entries
7 entries across 7 versions & 1 rubygems