require './lib/everything' describe Everything do describe '.path' do let(:expected_path) do '/some/path/to/your/everything/repo/' end before do ENV['EVERYTHING_PATH'] = expected_path end it 'is the path from the environment' do expect(described_class.path).to eq(expected_path) end end end