Sha256: 7662b4b80197fd2ea30f0aa3013272a9cbad6cb16d24559f610956aa933d5d57

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 Bytes

Contents

module Retest
  module Runners
    module CachedTestFile
      def cached_test_file
        @cached_test_file
      end

      def cached_test_file=(value)
        @cached_test_file = value || @cached_test_file
      end

      def purge_test_file(purged)
        return if purged.empty?

        if purged.is_a?(Array) && purged.include?(cached_test_file)
          @cached_test_file = nil
        elsif purged.is_a?(String) && purged == cached_test_file
          @cached_test_file = nil
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
retest-2.0.0.pre3 lib/retest/runners/cached_test_file.rb
retest-2.0.0.pre2 lib/retest/runners/cached_test_file.rb
retest-2.0.0.pre1 lib/retest/runners/cached_test_file.rb
retest-2.0.0.pre lib/retest/runners/cached_test_file.rb
retest-1.13.2 lib/retest/runners/cached_test_file.rb
retest-1.13.1 lib/retest/runners/cached_test_file.rb
retest-1.13.0 lib/retest/runners/cached_test_file.rb
retest-1.12.0 lib/retest/runners/cached_test_file.rb
retest-1.11.0 lib/retest/runners/cached_test_file.rb