Sha256: 1de439c60f30dc07c0f71d21315e02921c200e02528bcec2e454ef3d078a362b
Contents?: true
Size: 596 Bytes
Versions: 38
Compression:
Stored size: 596 Bytes
Contents
module Redcar class RspecRunner TEST_PATTERNS = [ /context\s+\"(.*)\"/, /describe\s+\"(.*)\"/, /it\s+\"(.*)\"/ ] def self.run_test(path, current_line) TEST_PATTERNS.each do |pattern| if current_line =~ pattern Redcar::Runnables.run_process Project::Manager.focussed_project.path, %{ruby -Ispec #{path} -e "#{$1}"}, "Running spec: #{$1}" return end end Redcar::Runnables.run_process Project::Manager.focussed_project.path, %{ruby -Ispec #{path}}, "Running spec: #{File.basename(path)}" end end end
Version data entries
38 entries across 38 versions & 2 rubygems