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

Version Path
apispree_core-0.0.0 lib/tasks/common.rb
My-Commerce_core-1.1.0 lib/tasks/common.rb
My-Commerce_core-1.0.0 lib/tasks/common.rb
MyCommerceapi-1.0.0 core/lib/tasks/common.rb
MyCommerce-0.0.3 core/lib/tasks/common.rb
rfcommerce_core-0.0.3 lib/tasks/common.rb
spree_core-0.60.6 lib/tasks/common.rb
spree_core-0.60.5 lib/tasks/common.rb
spree_core-0.50.4 lib/tasks/common.rb
spree_core-0.60.4 lib/tasks/common.rb
spree_core-0.50.3 lib/tasks/common.rb
spree_core-0.60.3 lib/tasks/common.rb
spree_core-0.60.2 lib/tasks/common.rb
spree_core-0.60.1 lib/tasks/common.rb
spree_core-0.60.0 lib/tasks/common.rb
spree_core-0.60.0.RC1 lib/tasks/common.rb
spree_core-0.50.2 lib/tasks/common.rb
spree_core-0.50.1 lib/tasks/common.rb
spree_core-0.50.0 lib/tasks/common.rb