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

Version Path
ohloh_scm-4.0.4 spec/ohloh_scm/activity_spec.rb
ohloh_scm-4.0.3 spec/ohloh_scm/activity_spec.rb
ohloh_scm-4.0.2 spec/ohloh_scm/activity_spec.rb
ohloh_scm-4.0.1 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.21 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.19 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.17 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.16 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.15 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.14 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.13 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.12 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.11 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.10 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.9 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.8 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.7 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.6 spec/ohloh_scm/activity_spec.rb
ohloh_scm-3.0.5 spec/ohloh_scm/activity_spec.rb