Sha256: dc57cb964481f2685d50a957c35fa001462b4d731928b8b7b7685d40074aba61

Contents?: true

Size: 776 Bytes

Versions: 2

Compression:

Stored size: 776 Bytes

Contents

#!/usr/bin/env rake

# Install tasks to build and release the plugin
require 'bundler/setup'
Bundler::GemHelper.install_tasks

# Install test tasks
require 'rspec/core/rake_task'
namespace :test do
  desc 'Run RSpec tests'
  RSpec::Core::RakeTask.new do |task|
    task.name = 'spec'
    task.pattern = './spec/*/unit/*_spec.rb'
  end

  namespace :remote do
    desc 'Run RSpec remote tests'
    RSpec::Core::RakeTask.new do |task|
      task.name = 'spec'
      task.pattern = './spec/*/remote/*_spec.rb'
    end
  end
  
  namespace :mysql do
    desc 'Run RSpec MySql related tests'
    RSpec::Core::RakeTask.new do |task|
      task.name = 'spec'
      task.pattern = './spec/*/unit_mysql/*_spec.rb'
    end
  end
end

# Run tests by default
task :default => 'test:spec'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kpm-0.5.1 Rakefile
kpm-0.5.0 Rakefile