Sha256: 6a0782df9affa9f9ca2acf98e72a1d8b11744d29d08e78ec4e91640fb286d91e

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

require 'support/env_mock'

RSpec.describe RSpeed::Env, '.name' do
  context 'when env is given' do
    it 'returns the env value' do
      EnvMock.mock(rspeed_name: 'name') do
        expect(described_class.name).to eq('name')
      end
    end
  end

  context 'when env is not given' do
    it { expect(described_class.name).to be(nil) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rspeed-0.5.2 spec/models/rspeed/env/name_spec.rb
rspeed-0.5.1 spec/models/rspeed/env/name_spec.rb
rspeed-0.5.0 spec/models/rspeed/env/name_spec.rb