Skip to content
This repository
tag: v2.0.0.beta.16
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (16 sloc) 0.486 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Beholder.runner = 'clear; ruby -Ilib -Ispec'

map_for(:rspec_core) do |m|

  m.watch 'lib', 'spec', 'example_specs'

  m.add_mapping %r%example_specs/(.*)_spec\.rb% do |match|
    ["example_specs/#{match[1]}_spec.rb"]
  end

  m.add_mapping %r%spec/(.*)_spec\.rb% do |match|
    ["spec/#{match[1]}_spec.rb"]
  end

  m.add_mapping %r%spec/spec_helper\.rb% do |match|
    Dir["spec/**/*_spec.rb"]
  end

  m.add_mapping %r%lib/(.*)\.rb% do |match|
    tests_matching match[1]
  end

end
Something went wrong with that request. Please try again.