Sha256: d9fd98628cb27798e9c319f2611cd6fd23c55782753d04f059f4da3ae2bf2719
Contents?: true
Size: 615 Bytes
Versions: 19
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe 'Activity' do describe 'log_filename' do it 'should return system tmp dir path' do ENV['OHLOH_SCM_TEMP_FOLDER_PATH'] = nil core = get_core(:git) scm = OhlohScm::Activity.new(core) scm.log_filename.must_equal "#{Dir.tmpdir}/foobar.log" end it 'should return temp folder path' do ENV['OHLOH_SCM_TEMP_FOLDER_PATH'] = '/test' core = get_core(:git) scm = OhlohScm::Activity.new(core) scm.log_filename.must_equal '/test/foobar.log' ENV['OHLOH_SCM_TEMP_FOLDER_PATH'] = '' end end end
Version data entries
19 entries across 19 versions & 1 rubygems