Sha256: 536cbe43ee295c95895d6c0017fb77b93d05b1de27f1e6e366730a3d6a261d5e

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rspec/core/rake_task'
require 'spree/testing_support/common_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'] = 'solidus_log_viewer'
  Rake::Task['common:test_app'].invoke("Spree::User")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_log_viewer-1.0.0 Rakefile