Sha256: 0001e4059601e871b0fc60207f586b67dc7b617fd5457844f6a82c484bebb3e6

Contents?: true

Size: 442 Bytes

Versions: 112

Compression:

Stored size: 442 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'] = '<%=file_name%>'
  Rake::Task['extension:test_app'].invoke
end

Version data entries

112 entries across 112 versions & 3 rubygems

Version Path
spree_cmd-3.4.6 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.2.9 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.1.14 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.3.6 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.2.8 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.1.13 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.4.5 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.3.5 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.4.4 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.4.3 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.3.4 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.2.7 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.1.12 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.4.2 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.3.3 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.2.6 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.1.11 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.4.1 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.4.0 lib/spree_cmd/templates/extension/Rakefile
spree_cmd-3.4.0.rc2 lib/spree_cmd/templates/extension/Rakefile