Sha256: 2f71830459b378fa0301030fc62609e488dcd28dcbb870573cab64beb7546c43

Contents?: true

Size: 439 Bytes

Versions: 4

Compression:

Stored size: 439 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
require 'spree/testing_support/extension_rake'

RSpec::Core::RakeTask.new

task :default do
  if Dir["spec/dummy"].empty?
    Rake::Task[:test_app].invoke
    Dir.chdir("../../")
  end
  Rake::Task[:spec].invoke
end

desc 'Generates a dummy app for testing'
task :test_app do
  ENV['LIB_NAME'] = 'spree_video'
  Rake::Task['extension:test_app'].invoke
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_video-1.0.3 Rakefile
spree_video-1.0.2 Rakefile
spree_video-1.0.1 Rakefile
spree_video-1.0.0 Rakefile