Sha256: fd33f7b9f4b760d9c90b8a6bf787fa359f948512cf083de0fd3fb086984da98b

Contents?: true

Size: 370 Bytes

Versions: 7

Compression:

Stored size: 370 Bytes

Contents

module Koine
  class TestRunner
    class Adapters
      class Rspec < BaseRegexp
        def initialize(file_pattern: /.*_spec.rb$/)
          super(file_pattern: file_pattern)
        end

        private

        def script_for(_config)
          return './bin/rspec' if File.exist?('bin/rspec')

          'bundle exec rspec'
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
koine-test_runner-0.4.0 lib/koine/test_runner/adapters/rspec.rb
koine-test_runner-0.3.0 lib/koine/test_runner/adapters/rspec.rb
koine-test_runner-0.2.4 lib/koine/test_runner/adapters/rspec.rb
koine-test_runner-0.2.3 lib/koine/test_runner/adapters/rspec.rb
koine-test_runner-0.2.2 lib/koine/test_runner/adapters/rspec.rb
koine-test_runner-0.2.1 lib/koine/test_runner/adapters/rspec.rb
koine-test_runner-0.2.0 lib/koine/test_runner/adapters/rspec.rb