Sha256: c6f7e09cdf8212542916de1016335681e5e200972757c44114081671b308d23a
Contents?: true
Size: 868 Bytes
Versions: 19
Compression:
Stored size: 868 Bytes
Contents
require File.expand_path('../rake_util', __FILE__) gemfile = File.expand_path('../spec/test_app/Gemfile', ENV['SPREE_GEM_PATH']) if File.exists?(gemfile) && (%w(spec cucumber).include?(ARGV.first.to_s) || ARGV.size == 0) require 'bundler' ENV['BUNDLE_GEMFILE'] = gemfile Bundler.setup require 'rspec/core/rake_task' RSpec::Core::RakeTask.new require 'cucumber/rake/task' Cucumber::Rake::Task.new do |t| t.cucumber_opts = %w{--format pretty} end desc "Run specs with RCov" RSpec::Core::RakeTask.new(:rcov) do |t| t.rcov = true t.rcov_opts = %w{ --exclude gems\/,spec\/,features\/} t.verbose = true end end namespace :test_app do desc 'Rebuild test and cucumber databases' task :rebuild_dbs do system("cd spec/test_app && rake db:drop db:migrate RAILS_ENV=test && rake db:drop db:migrate RAILS_ENV=cucumber") end end
Version data entries
19 entries across 19 versions & 6 rubygems