File: discover.rb

package info (click to toggle)
ruby-bacon 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 144 kB
  • sloc: ruby: 733; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
Autotest.add_discovery do
  if File.exist?('spec/.bacon') || File.exist?('test/.bacon')
    class Autotest
      @@discoveries.delete_if { |d| d.inspect =~ /rspec/ }
      warn 'Removing rspec from autotest!'
    end
    'bacon'
  end
end