Sha256: 3a591fcf2fe09cd5c5e46c50a3ed173ab50c24b7e2b359a3810c304b51a4ffa9
Contents?: true
Size: 435 Bytes
Versions: 5
Compression:
Stored size: 435 Bytes
Contents
# frozen_string_literal: true require 'support/env_mock' RSpec.describe RSpeed::Env, '.pipe' do context 'when pipe env is given' do it 'returns the number of the current pipe as integer' do EnvMock.mock(rspeed_pipe: '2') do expect(described_class.pipe).to be(2) end end end context 'when pipe env is not given' do it 'returns 1' do expect(described_class.pipe).to be(1) end end end
Version data entries
5 entries across 5 versions & 1 rubygems