Module: TestLauncher::Frameworks::RSpec

Defined in:
lib/test_launcher/frameworks/rspec.rb

Defined Under Namespace

Classes: Runner, Searcher, TestCase

Class Method Summary collapse

Class Method Details

.active?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/test_launcher/frameworks/rspec.rb', line 8

def self.active?
  `git ls-files '*_spec.rb'`.split("\n").any?
end

.runner(*a) ⇒ Object



20
21
22
# File 'lib/test_launcher/frameworks/rspec.rb', line 20

def self.runner(*a)
  Runner.new(*a)
end

.searcher(*a) ⇒ Object



16
17
18
# File 'lib/test_launcher/frameworks/rspec.rb', line 16

def self.searcher(*a)
  Searcher.new(*a)
end

.test_case(*a) ⇒ Object



12
13
14
# File 'lib/test_launcher/frameworks/rspec.rb', line 12

def self.test_case(*a)
  TestCase.new(*a)
end