# encoding: UTF-8 require 'rubygems' require 'bundler/setup' require 'rspec/core/rake_task' require 'rubocop/rake_task' # Change to the directory of this file. Dir.chdir(File.expand_path('../', __FILE__)) # For gem creation and bundling require 'bundler/gem_tasks' RSpec::Core::RakeTask.new(:spec) do |task| task.pattern = 'spec/unit/*_spec.rb' task.rspec_opts = ['--color', '-f documentation'] end # Run the integration test suite RSpec::Core::RakeTask.new(:integration) do |task| task.pattern = 'spec/integration/*_spec.rb' task.rspec_opts = ['--color', '-f documentation'] end RuboCop::RakeTask.new task default: [:spec, :rubocop] task all: [:default, :integration]