lib/sniff/rake_tasks.rb in sniff-1.1.0 vs lib/sniff/rake_tasks.rb in sniff-1.1.1

- old
+ new

@@ -54,10 +54,11 @@ add_filter '/vendor/' end end end + desc "Load a console" task :console do require 'sniff' sniff = Sniff.new Dir.pwd sniff.connect @@ -174,12 +175,12 @@ end end if rspec require 'rspec/core/rake_task' - - desc "Run all examples" + + desc "Run all rspec examples" RSpec::Core::RakeTask.new('examples') do |c| if ENV['RSPEC_FORMAT'] c.rspec_opts = "-Ispec --format #{ENV['RSPEC_FORMAT']}" else c.rspec_opts = '-Ispec --format documentation' @@ -195,9 +196,10 @@ test_tasks = ['log/'] test_tasks << :examples if rspec test_tasks << :features if cucumber unless test_tasks.empty? + desc "Run tests" task :test => test_tasks task :default => :test end RDoc::Task.new do |rdoc|