Module: Retest::CachedTestFile
- Included in:
- Runner
- Defined in:
- lib/retest/runner/cached_test_file.rb
Instance Attribute Summary collapse
-
#cached_test_file ⇒ Object
Returns the value of attribute cached_test_file.
Instance Method Summary collapse
Instance Attribute Details
#cached_test_file ⇒ Object
Returns the value of attribute cached_test_file.
3 4 5 |
# File 'lib/retest/runner/cached_test_file.rb', line 3 def cached_test_file @cached_test_file end |
Instance Method Details
#purge_test_file(purged) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/retest/runner/cached_test_file.rb', line 9 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 |