Sha256: 9b8e641c2ceb4665ebf80022b25e02ebdd06ccd9422af0681227428780be53d4

Contents?: true

Size: 622 Bytes

Versions: 6

Compression:

Stored size: 622 Bytes

Contents

require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rspec/core/rake_task'
require 'spree/testing_support/dummy_app/rake_tasks'

RSpec::Core::RakeTask.new
task default: :spec

DummyApp::RakeTasks.new(
  gem_root: File.dirname(__FILE__),
  lib_name: 'solidus_core'
)

namespace :spec do
  task :isolated do
    spec_files = Dir['spec/**/*_spec.rb']
    failed_specs =
      spec_files.reject do |file|
        puts "rspec #{file}"
        system('rspec', file)
      end

    if !failed_specs.empty?
      puts "Failed specs:"
      puts failed_specs
      exit 1
    end
  end
end

task test_app: 'db:reset'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
solidus_core-2.5.2 Rakefile
solidus_core-2.5.1 Rakefile
solidus_core-2.5.0 Rakefile
solidus_core-2.5.0.rc1 Rakefile
solidus_core-2.5.0.beta2 Rakefile
solidus_core-2.5.0.beta1 Rakefile