Sha256: a74c70fd4f941b0d0dbe7d2597b9693e2cd294bcbec063de0e01340b289a0053

Contents?: true

Size: 820 Bytes

Versions: 1

Compression:

Stored size: 820 Bytes

Contents

require 'rubygems'
require 'bundler/setup'

require 'rake'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
require 'appraisal'

Bundler::GemHelper.install_tasks

desc 'Default: run unit tests.'
task :default => [:clean, :all]

desc "Run Specs against all Appraisals"
task :all => :spec do
  Rake::Task["appraisal:install"].execute
  system("bundle exec rake -s appraisal test")
end

desc "Run Specs"
RSpec::Core::RakeTask.new(:spec) do |t|
end

task :test => [:spec, :cucumber]

Cucumber::Rake::Task.new(:cucumber) do |t|
  t.fork = true
  t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end

desc "Clean up files."
task :clean do |t|
  FileUtils.rm_rf "tmp"
  Dir.glob("spec/db/*.sqlite3").each {|f| FileUtils.rm f }
  Dir.glob("micro_sessions-*.gem").each {|f| FileUtils.rm f }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
micro_sessions-0.2.0 Rakefile