am-kantox/kungfuig

View on GitHub
Rakefile

Summary

Maintainability
Test Coverage
# encoding: UTF-8
require 'rubygems'

require 'bundler'
require 'bundler/setup'
require 'bundler/gem_tasks'

require 'rspec/core/rake_task'

begin
  Bundler.setup(:default, :development, :test)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts 'Run `bundle install` to install missing gems'
  exit e.status_code
end

desc 'Tests'
RSpec::Core::RakeTask.new(:spec) do |spec|
  spec.rspec_opts = '-Ispec'
  #  spec.rcov = true
end

require 'cucumber/rake/task'
desc 'Cucumber'
Cucumber::Rake::Task.new(:features)

task default: [:features, :spec]