Sha256: 17a5f7999f16f4bb45f9a794c0c50aa674c3cbc0afc41bdaad101a71628be623
Contents?: true
Size: 402 Bytes
Versions: 1
Compression:
Stored size: 402 Bytes
Contents
class JSpecRunner def initialize(dir, filter) @config = dir + '/spec/spec.rhino.js' @dir = dir @filter = filter end def execute return `jspec run --rhino --trace 2>&1` end def is_configured?(all_files) return all_files.include?(@config) end def should_run?(modified_files) return !(modified_files.detect { |file| @filter.filter(file) }).nil? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
karl-loris-0.0.9 | lib/tasks/jspec/jspec_runner.rb |