Class: Inferno::Repositories::TestKits
- Inherits:
-
InMemoryRepository
- Object
- InMemoryRepository
- Inferno::Repositories::TestKits
- Defined in:
- lib/inferno/repositories/test_kits.rb
Overview
Repository that deals with persistence for the TestKit
entity.
Instance Method Summary collapse
Methods inherited from InMemoryRepository
all, #exists?, #find, #insert, #remove
Instance Method Details
#local_test_kit ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/inferno/repositories/test_kits.rb', line 7 def local_test_kit local_base_path = File.join(Dir.pwd, 'lib') self.class.all.find do |test_kit| Object.const_source_location(test_kit.name).first.start_with? local_base_path end end |
#test_kit_for_suite(suite_id) ⇒ Object
15 16 17 |
# File 'lib/inferno/repositories/test_kits.rb', line 15 def test_kit_for_suite(suite_id) self.class.all.find { |test_kit| test_kit.contains_test_suite? suite_id } end |