Sha256: b4bd8e55e1ba06cd8375b9a78e2f1a0dcf24853a4088a68d3372c8e77a1d4bde

Contents?: true

Size: 862 Bytes

Versions: 21

Compression:

Stored size: 862 Bytes

Contents

require 'bundler/setup'
require 'rspec/core/rake_task'
require 'rake/testtask'

Bundler::GemHelper.install_tasks

# Impressionist will use MiniTest instead of RSpec
RSpec::Core::RakeTask.new do |task|
  task.rspec_opts = "-I ./tests/test_app/spec"
  task.pattern = "./tests/test_app/spec/**/*_spec.rb"
end

task :test_app => :spec
task :default => [:test, :test_app]

namespace :impressionist do
  require File.dirname(__FILE__) + "/lib/impressionist/bots"

  desc "output the list of bots from http://www.user-agents.org/"
  task :bots do
    p Impressionist::Bots.consume
  end

end

# setup :test task to minitest
# Rake libs default is lib
# libs << path to load test_helper, etc..
Rake::TestTask.new do |t|
  t.libs << "tests/spec"
  t.pattern     = "tests/spec/**/*_spec.rb"
  t.test_files =  FileList["tests/spec/**/*_spec.rb"]
  t.verbose     = true
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
impressionist-2.0.0 Rakefile
impressionist-1.6.1 Rakefile
impressionist-1.6.0 Rakefile
impressionist-1.5.2 Rakefile
impressionist2-1.5.5 Rakefile
impressionist2-1.5.4 Rakefile
impressionist2-1.5.3 Rakefile
impressionist2-1.5.1 Rakefile
impressionist-1.5.1 Rakefile
impressionist-1.4.13 Rakefile
impressionist-1.4.12 Rakefile
impressionist-1.4.11 Rakefile
impressionist-1.4.10 Rakefile
impressionist-1.4.9 Rakefile
impressionist-1.4.8 Rakefile
impressionist-1.4.7 Rakefile
impressionist-1.4.6 Rakefile
impressionist-1.4.5 Rakefile
impressionist-1.4.4 Rakefile
impressionist-1.4.3 Rakefile