Sha256: 1a004d75c791bfe9186efa370062c5c4561df538db46fbb333fe0bebafaf4a49

Contents?: true

Size: 548 Bytes

Versions: 5

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

require "bundler/gem_tasks"
require "rake/testtask"

Rake::TestTask.new(:test) do |t|
  t.libs << "test"
  t.libs << "lib"
  t.test_files = FileList["test/**/*_test.rb"].exclude("test/dummy_app/**/*")
end

namespace :test do
  task :system do
    Bundler.with_original_env do
      sh <<~CMD
        yarn build &&
        cd test/dummy_app &&
        yarn &&
        bundle &&
        RAILS_ENV=test rails webpacker:compile
        rails test:system
      CMD
    end
  end
end

task default: [:test, :'test:system']

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shoelace-rails-0.4.1 Rakefile
shoelace-rails-0.4.0 Rakefile
shoelace-rails-0.3.0 Rakefile
shoelace-rails-0.2.0 Rakefile
shoelace-rails-0.1.0 Rakefile